feat: 破坏性更新 cjs to es

This commit is contained in:
手瓜一十雪
2024-05-22 19:58:45 +08:00
parent 08976624cd
commit 4e0cdbcb91
17 changed files with 75 additions and 13 deletions

View File

@@ -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:*/ ],