diff --git a/scripts/vite.config.mjs b/scripts/vite.config.mjs index feace56..0b94b08 100644 --- a/scripts/vite.config.mjs +++ b/scripts/vite.config.mjs @@ -12,6 +12,7 @@ export default defineConfig({ lib: { entry: 'index.ts', formats: ['cjs'], + fileName: () => '[name].cjs', }, minify: process.env.NODE_ENV === 'production', emptyOutDir: true, @@ -21,9 +22,6 @@ export default defineConfig({ ...builtinModules, ...Object.keys(pkg.dependencies || {}), ], - output: { - entryFileNames: '[name].cjs', - }, }, }, })