Skip to content

Commit c699111

Browse files
committed
Always parse dependencies if babel ran. Fixes #408.
A babel plugin might introduce a new dependency, e.g. transform-runtime.
1 parent b9004fc commit c699111

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/assets/JSAsset.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class JSAsset extends Asset {
3030

3131
mightHaveDependencies() {
3232
return (
33+
this.isAstDirty ||
3334
!/.js$/.test(this.name) ||
3435
IMPORT_RE.test(this.contents) ||
3536
GLOBAL_RE.test(this.contents) ||

0 commit comments

Comments
 (0)