Skip to content

Commit

Permalink
Unescaped "." in regex for JSAsset (#2759)
Browse files Browse the repository at this point in the history
.js = ajs | 0js | sjs
  • Loading branch information
pocesar authored and devongovett committed Mar 10, 2019
1 parent 2c65fbf commit 3e3298a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/parcel-bundler/src/assets/JSAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class JSAsset extends Asset {
mightHaveDependencies() {
return (
this.isAstDirty ||
!/.js$/.test(this.name) ||
!/\.js$/.test(this.name) ||
IMPORT_RE.test(this.contents) ||
GLOBAL_RE.test(this.contents) ||
SW_RE.test(this.contents) ||
Expand Down

0 comments on commit 3e3298a

Please sign in to comment.