mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
fix(pkg): preferConst -> output.preferConst
This commit is contained in:
parent
ee0a84c83c
commit
7fc4ba28da
@ -32,9 +32,9 @@ export default function rollupConfig({
|
|||||||
output: {
|
output: {
|
||||||
file: `${pkg.name.replace('-edge', '')}.js`,
|
file: `${pkg.name.replace('-edge', '')}.js`,
|
||||||
dir: path.resolve(rootDir, 'dist'),
|
dir: path.resolve(rootDir, 'dist'),
|
||||||
format: 'cjs'
|
format: 'cjs',
|
||||||
|
preferConst: true
|
||||||
},
|
},
|
||||||
preferConst: true,
|
|
||||||
external: [
|
external: [
|
||||||
// Dependencies that will be installed alongise with the nuxt package
|
// Dependencies that will be installed alongise with the nuxt package
|
||||||
...Object.keys(pkg.dependencies || {}),
|
...Object.keys(pkg.dependencies || {}),
|
||||||
|
Loading…
Reference in New Issue
Block a user