fix: ESM error (#826)

This commit is contained in:
Kid
2023-03-23 20:43:47 +08:00
committed by GitHub
parent 9081b22ce9
commit 57a1d6e3cd
3 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ export default defineConfig({
entry: ['src/index.ts'],
outDir: 'build',
target: 'es2020',
format: ['cjs'],
format: ['esm'],
splitting: false,
sourcemap: true,
minify: false,