Skip to content

Commit

Permalink
fix(build): better prod devtools guard
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 19, 2022
1 parent 16a808a commit 9468137
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 @@ -178,7 +178,7 @@ function createReplacePlugin(
? `(process.env.NODE_ENV === 'test')`
: 'false',
__FEATURE_PROD_DEVTOOLS__: isBundlerESMBuild
? `__VUE_PROD_DEVTOOLS__`
? `(typeof __VUE_PROD_DEVTOOLS__ !== 'undefined' && __VUE_PROD_DEVTOOLS__)`
: 'false',
// If the build is expected to run directly in the browser (global / esm builds)
__BROWSER__: JSON.stringify(isRawESMBuild),
Expand Down

0 comments on commit 9468137

Please sign in to comment.