mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-12-06 00:27:20 +00:00
25 lines
920 B
TypeScript
25 lines
920 B
TypeScript
// SPDX-FileCopyrightText: 2025 Weibo, Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// tsup.config.ts
|
|
import { defineConfig } from "tsup"
|
|
|
|
import { dependencies } from "./package.json"
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
"src/main": "src/main.ts",
|
|
"src/extension": "src/extension.ts",
|
|
}, // Build both server and ext host
|
|
format: ["esm"], // Output format, e.g., ES Module and CommonJS
|
|
minify: true, // Minify code
|
|
clean: true, // Clean output directory
|
|
splitting: false,
|
|
platform: "node", // Target platform, e.g., Node.js
|
|
target: "node18", // Target environment, e.g., latest ECMAScript standard
|
|
skipNodeModulesBundle: false, // Don't bundle dependencies in node_modules
|
|
// noExternal: Object.keys(dependencies),
|
|
// external:[/^@vscode\/.*$/], // Don't bundle vscode-related dependencies
|
|
dts: false, // Don't generate type declaration files, as we usually handle type declarations separately
|
|
})
|