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 d872cc0 commit d81d57bCopy full SHA for d81d57b
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