mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
lib.fileName instead output.entryFileNames
This commit is contained in:
parent
8a7132af34
commit
d3db7251e5
@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user