remove console log and condense return into 1 line

pull/2748/head
Dmitriy Lyner 7 years ago
parent f7a3a213f6
commit b6b4422ab4

@ -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)})`,

Loading…
Cancel
Save