Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Fix __webpack_public_path__ within getWorkerUrl method (#63)
Browse files Browse the repository at this point in the history
Fix __webpack_public_path__ within getWorkerUrl method
  • Loading branch information
alexdima committed Dec 18, 2019
2 parents 1d1473d + 4273b13 commit f6a2196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -117,7 +117,7 @@ function createLoaderRules(languages, features, workers, outputPath, publicPath)
}
return {
getWorkerUrl: function (moduleId, label) {
var pathPrefix = (typeof window.__webpack_public_path__ === 'string' ? window.__webpack_public_path__ : ${JSON.stringify(publicPath)});
var pathPrefix = (typeof __webpack_public_path__ === 'string' ? __webpack_public_path__ : ${JSON.stringify(publicPath)});
return (pathPrefix ? stripTrailingSlash(pathPrefix) + '/' : '') + paths[label];
}
};
Expand Down

0 comments on commit f6a2196

Please sign in to comment.