We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbac817 commit 6f085d3Copy full SHA for 6f085d3
packages/@vue/cli-service/lib/config/dev.js
@@ -11,9 +11,10 @@ module.exports = (api, options) => {
11
.use(require('webpack/lib/HotModuleReplacementPlugin'))
12
13
// https://github.com/webpack/webpack/issues/6642
14
+ // https://github.com/vuejs/vue-cli/issues/3539
15
webpackConfig
16
.output
- .globalObject('this')
17
+ .globalObject(`(typeof self !== 'undefined' ? self : this)`)
18
19
if (!process.env.VUE_CLI_TEST && options.devServer.progress !== false) {
20
0 commit comments