Skip to content

Commit

Permalink
fix(ssr): changing SSR check from process.env.SSR to `import.meta.e…
Browse files Browse the repository at this point in the history
…nv.SSR`
  • Loading branch information
pikax committed Mar 6, 2021
1 parent 9ce3b1d commit 957fab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function createReplacePlugin(
__SSR__: isBrowserBuild
? false
: isBundlerESMBuild
? `(process.env.SSR === 'true')`
? `(import.meta.env.SSR == true)`
: true,
// this is only used during tests
__TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : false,
Expand Down

0 comments on commit 957fab3

Please sign in to comment.