Skip to content

Commit

Permalink
fix: replace global. in fewer instances (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Apr 27, 2022
1 parent 1d8961e commit 73db5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const getRollupConfig = (nitro: Nitro) => {
values: {
'process.env.NODE_ENV': nitro.options.dev ? '"development"' : '"production"',
'typeof window': '"undefined"',
'global.': 'globalThis.',
...Object.fromEntries([';', '(', '{', '}', ' ', '\t', '\n'].map(d => [`${d}global.`, `${d}globalThis.`])),
'process.server': 'true',
'process.client': 'false',
'process.dev': String(nitro.options.dev),
Expand Down

0 comments on commit 73db5c9

Please sign in to comment.