Skip to content

Commit

Permalink
fix loadplugin, when the plugin have some async work while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
fansenze committed Dec 27, 2017
1 parent 0eb4487 commit bb6e604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Bundler extends EventEmitter {
for (let dep in deps) {
if (dep.startsWith('parcel-plugin-')) {
let plugin = await localRequire(dep, this.mainFile);
plugin(this);
await plugin(this);
}
}
} catch (err) {
Expand Down

0 comments on commit bb6e604

Please sign in to comment.