Skip to content

Commit

Permalink
Always parse dependencies if babel ran. Fixes #408.
Browse files Browse the repository at this point in the history
A babel plugin might introduce a new dependency, e.g. transform-runtime.
  • Loading branch information
devongovett committed Jan 1, 2018
1 parent b9004fc commit c699111
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/assets/JSAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class JSAsset extends Asset {

mightHaveDependencies() {
return (
this.isAstDirty ||
!/.js$/.test(this.name) ||
IMPORT_RE.test(this.contents) ||
GLOBAL_RE.test(this.contents) ||
Expand Down

0 comments on commit c699111

Please sign in to comment.