feat: 破坏性更新 cjs to es
This commit is contained in:
1 parent
08976624cd
commit
4e0cdbcb91
17 files changed
+75
-13
No files matched your search
+2
-2
@@ -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