mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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
|
||||
rollupConfig.plugins.push(replace({
|
||||
// @ts-ignore https://github.com/rollup/plugins/pull/810
|
||||
preventAssignment: true,
|
||||
values: {
|
||||
'process.env.NODE_ENV': nitroContext._nuxt.dev ? '"development"' : '"production"',
|
||||
'typeof window': '"undefined"',
|
||||
|
Loading…
Reference in New Issue
Block a user