From 4273b13ac4e68c21a5ba50ed65f0133426b28d54 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Wed, 13 Mar 2019 09:54:45 -0500 Subject: [PATCH] Webpack property __webpack_public_path__ must be a free var --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 60783f03..905e6b47 100644 --- a/index.js +++ b/index.js @@ -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]; } };