From b6b4422ab4ffb1ac85533021655742bbf75b5980 Mon Sep 17 00:00:00 2001 From: Dmitriy Lyner Date: Thu, 31 May 2018 11:19:50 -0600 Subject: [PATCH] remove console log and condense return into 1 line --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 8a71a681..fe7baf3e 100644 --- a/index.js +++ b/index.js @@ -97,9 +97,7 @@ function createLoaderRules(languages, features, workers, publicPath) { return { getWorkerUrl: function (moduleId, label) { const pathPrefix = (typeof window.__webpack_public_path__ === 'string' ? window.__webpack_public_path__ : ${JSON.stringify(publicPath)}); - var path = (pathPrefix ? stripTrailingSlash(pathPrefix) + '/' : '') + paths[label]; - console.log('editor path: ' + path); - return path; + return (pathPrefix ? stripTrailingSlash(pathPrefix) + '/' : '') + paths[label]; } }; })(${JSON.stringify(workerPaths, null, 2)})`,