fix(pkg): preferConst -> output.preferConst

This commit is contained in:
Pooya Parsa 2018-12-30 00:01:28 +03:30
parent ee0a84c83c
commit 7fc4ba28da

View File

@ -32,9 +32,9 @@ export default function rollupConfig({
output: {
file: `${pkg.name.replace('-edge', '')}.js`,
dir: path.resolve(rootDir, 'dist'),
format: 'cjs'
format: 'cjs',
preferConst: true
},
preferConst: true,
external: [
// Dependencies that will be installed alongise with the nuxt package
...Object.keys(pkg.dependencies || {}),