We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7becca9 commit aafc3e1Copy full SHA for aafc3e1
rollup.config.js
@@ -192,7 +192,7 @@ function createReplacePlugin(
192
__SSR__: isBrowserBuild
193
? false
194
: isBundlerESMBuild
195
- ? `(('process' in globalThis ? globalThis.process.env.SSR : 'import' in globalThis ? globalThis.import.meta.env.SSR : false) == true)`
+ ? `((globalThis.import ? globalThis.import.meta.env.SSR : process.env.SSR ) == true)`
196
: true,
197
// this is only used during tests
198
__TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : false,
0 commit comments