mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
add preventAssignment option
This commit is contained in:
parent
709611941b
commit
29409f064f
@ -111,6 +111,8 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
|
|||||||
|
|
||||||
// https://github.com/rollup/plugins/tree/master/packages/replace
|
// https://github.com/rollup/plugins/tree/master/packages/replace
|
||||||
rollupConfig.plugins.push(replace({
|
rollupConfig.plugins.push(replace({
|
||||||
|
// @ts-ignore https://github.com/rollup/plugins/pull/810
|
||||||
|
preventAssignment: true,
|
||||||
values: {
|
values: {
|
||||||
'process.env.NODE_ENV': nitroContext._nuxt.dev ? '"development"' : '"production"',
|
'process.env.NODE_ENV': nitroContext._nuxt.dev ? '"development"' : '"production"',
|
||||||
'typeof window': '"undefined"',
|
'typeof window': '"undefined"',
|
||||||
|
Loading…
Reference in New Issue
Block a user