This is to fix a warning since the option will be set to true in the next major version of the plugin
// Remove last entry in external array to bundle Popper
external.pop()
delete globals['@popperjs/core']
- plugins.push(replace({ 'process.env.NODE_ENV': '"production"' }), nodeResolve())
+ plugins.push(
+ replace({
+ 'process.env.NODE_ENV': '"production"',
+ preventAssignment: true
+ }),
+ nodeResolve()
+ )
}
const rollupConfig = {
},
plugins: [
replace({
- 'process.env.NODE_ENV': '"production"'
+ 'process.env.NODE_ENV': '"production"',
+ preventAssignment: true
}),
nodeResolve(),
babel({
rollupPreprocessor: {
plugins: [
replace({
- 'process.env.NODE_ENV': '"dev"'
+ 'process.env.NODE_ENV': '"dev"',
+ preventAssignment: true
}),
istanbul({
exclude: [