Debugging stuff

This commit is contained in:
Vasily 2020-04-24 13:46:57 +03:00
parent 7bb7560481
commit ce2c3ad36e
5 changed files with 15 additions and 8 deletions

View File

@ -116,12 +116,12 @@ const pipelineJavascript = lazypipe()
]
});
})
.pipe(function () {
return terser({
keep_fnames: true,
mangle: false
});
})
// .pipe(function () {
// return terser({
// keep_fnames: true,
// mangle: false
// });
// })
.pipe(function () {
return mode.development(sourcemaps.write('.'));
});

View File

@ -11,5 +11,8 @@ function getConfig() {
export function enableMultiServer() {
return getConfig().then(config => {
return config.multiserver;
}).catch(error => {
console.log("cannot get web config:", error);
return false;
});
}

View File

@ -709,6 +709,10 @@ var AppInfo = {};
onError: onRequireJsError
});
require(["fetch"], function (fetch) {
console.debug("fetch is here", fetch);
});
require(["polyfill"]);
require(["fast-text-encoding"]);
require(["intersection-observer"]);

View File

@ -14,7 +14,7 @@ module.exports = merge(common, {
rules: [
{
test: /\.js$/,
exclude: /node_modules[\\/](?!query-string)/,
exclude: /node_modules[\\/](?!query-string|split-on-first|strict-uri-encode)/,
loader: "babel-loader"
},
{

View File

@ -7,7 +7,7 @@ module.exports = merge(common, {
rules: [
{
test: /\.js$/,
exclude: /node_modules[\\/](?!query-string)/,
exclude: /node_modules[\\/](?!query-string|split-on-first|strict-uri-encode)/,
loader: "babel-loader"
},
{