Skip to content

Commit

Permalink
CSS hot reloading fix for platforms with urls that lack protocol and …
Browse files Browse the repository at this point in the history
…host prefix. (#3649)
  • Loading branch information
krisnye authored and devongovett committed Oct 16, 2019
1 parent 0464303 commit 5200ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/parcel-bundler/src/builtins/bundle-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getBundleURL() {
}

function getBaseURL(url) {
return ('' + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^/]+$/, '$1') + '/';
return ('' + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)?\/[^/]+(?:\?.*)?$/, '$1') + '/';
}

exports.getBundleURL = getBundleURLCached;
Expand Down

0 comments on commit 5200ecc

Please sign in to comment.