mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: 破坏性更新 cjs to es
This commit is contained in:
@@ -83,8 +83,8 @@ const baseConfig = (mode: string = 'development') => defineConfig({
|
||||
minify: false,
|
||||
lib: {
|
||||
entry: 'src/index.ts',
|
||||
formats: ['cjs'],
|
||||
fileName: () => 'napcat.cjs',
|
||||
formats: ['es'],
|
||||
fileName: () => 'napcat.mjs',
|
||||
},
|
||||
rollupOptions: {
|
||||
// external: [ /node:*/ ],
|
||||
|
Reference in New Issue
Block a user