Skip to content

Commit

Permalink
For scope hoisting, Asset IDs cannot contain + or / (base64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Feb 25, 2019
1 parent a1567e1 commit 941bcf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/parcel-bundler/src/Asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ class Asset {
if (!this.id) {
this.id =
this.options.production || this.options.scopeHoist
? md5(this.relativeName, 'base64').slice(0, 4)
? md5(this.relativeName, 'base64')
.slice(0, 4)
.replace(/\+\//g, '_')
: this.relativeName;
}

Expand Down

0 comments on commit 941bcf0

Please sign in to comment.