mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
chore(build): add preventAssignment option for replace plugin
This commit is contained in:
parent
b7f9cdc2a4
commit
756b16ae06
@ -38,6 +38,7 @@ export default function rollupConfig ({
|
|||||||
replacePlugin({
|
replacePlugin({
|
||||||
exclude: 'node_modules/**',
|
exclude: 'node_modules/**',
|
||||||
delimiters: ['', ''],
|
delimiters: ['', ''],
|
||||||
|
preventAssignment: true,
|
||||||
values: {
|
values: {
|
||||||
__NODE_ENV__: process.env.NODE_ENV,
|
__NODE_ENV__: process.env.NODE_ENV,
|
||||||
...replace
|
...replace
|
||||||
|
Loading…
Reference in New Issue
Block a user