This commit is contained in:
@@ -18,23 +18,24 @@ export default [
|
||||
typescript({
|
||||
allowImportingTsExtensions: true,
|
||||
noEmit: true,
|
||||
exclude: ['src/node-adapter.ts'],
|
||||
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
|
||||
],
|
||||
},
|
||||
{
|
||||
input: 'src/node-adapter.ts', // TypeScript 入口文件
|
||||
output: {
|
||||
file: 'dist/node-adapter.js', // 输出文件
|
||||
format: 'es', // 输出格式设置为 ES 模块
|
||||
},
|
||||
plugins: [
|
||||
resolve(), // 使用 @rollup/plugin-node-resolve 解析 node_modules 中的模块
|
||||
typescript({
|
||||
allowImportingTsExtensions: true,
|
||||
noEmit: true,
|
||||
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
|
||||
],
|
||||
},
|
||||
// {
|
||||
// input: 'src/node-adapter.ts', // TypeScript 入口文件
|
||||
// output: {
|
||||
// file: 'dist/node-adapter.js', // 输出文件
|
||||
// format: 'es', // 输出格式设置为 ES 模块
|
||||
// },
|
||||
// plugins: [
|
||||
// resolve(), // 使用 @rollup/plugin-node-resolve 解析 node_modules 中的模块
|
||||
// typescript({
|
||||
// allowImportingTsExtensions: true,
|
||||
// noEmit: true,
|
||||
// }), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
input: 'src/ws.ts', // TypeScript 入口文件
|
||||
output: {
|
||||
@@ -46,6 +47,7 @@ export default [
|
||||
typescript({
|
||||
allowImportingTsExtensions: true,
|
||||
noEmit: true,
|
||||
declaration: false,
|
||||
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user