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: {
|
lib: {
|
||||||
entry: 'index.ts',
|
entry: 'index.ts',
|
||||||
formats: ['cjs'],
|
formats: ['cjs'],
|
||||||
|
fileName: () => '[name].cjs',
|
||||||
},
|
},
|
||||||
minify: process.env.NODE_ENV === 'production',
|
minify: process.env.NODE_ENV === 'production',
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
@ -21,9 +22,6 @@ export default defineConfig({
|
|||||||
...builtinModules,
|
...builtinModules,
|
||||||
...Object.keys(pkg.dependencies || {}),
|
...Object.keys(pkg.dependencies || {}),
|
||||||
],
|
],
|
||||||
output: {
|
|
||||||
entryFileNames: '[name].cjs',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user