Skip to content

Commit

Permalink
fix(webpack): modern build should wait for legacy assets (#7635)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Jun 29, 2020
1 parent ffb340c commit 23324b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/webpack/src/plugins/vue/modern.js
Expand Up @@ -35,15 +35,15 @@ export default class ModernModePlugin {
}

getAssets (name) {
const asset = this.assets[name]
if (!asset) {
return
}
return new Promise((resolve) => {
watcher.once(name, () => {
const asset = this.assets[name]
if (asset) {
return resolve(asset)
}
return watcher.once(name, () => {
const asset = this.assets[name]
return asset && resolve(asset)
})
return asset && resolve(asset)
})
}

Expand Down

0 comments on commit 23324b9

Please sign in to comment.