From e7551d3bf94770f0bb703721be236b976199a448 Mon Sep 17 00:00:00 2001 From: James Diefenderfer Date: Fri, 15 Nov 2019 12:53:28 -0800 Subject: [PATCH] reference free variable --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c6899032..04c95499 100644 --- a/index.js +++ b/index.js @@ -116,8 +116,8 @@ function createLoaderRules(languages, features, workers, outputPath, pluginPubli // 3. Compilation public path. const pathPrefix = Boolean(pluginPublicPath) ? JSON.stringify(pluginPublicPath) - : `typeof window.__webpack_public_path__ === 'string' ` + - `? window.__webpack_public_path__ ` + + : `typeof __webpack_public_path__ === 'string' ` + + `? __webpack_public_path__ ` + `: ${JSON.stringify(compilationPublicPath)}` const globals = {