[Gradle, JS] Disable optimization in webpack for karma tests

^KT-56192 fixed
This commit is contained in:
Ilya Goncharov
2023-01-25 16:06:29 +00:00
committed by Space Team
parent 9d911247fa
commit 42ded7be09
5 changed files with 89 additions and 39 deletions
@@ -6,7 +6,7 @@ const {absolutify} = require("webpack/lib/util/identifier");
// https://github.com/webpack/webpack/issues/12951
class PatchSourceMapSourcePlugin {
apply(compiler) {
compiler.hooks.beforeRun.tap("PathcSourceMapSourcePlugin", compiler => {
compiler.hooks.beforeRun.tap("PatchSourceMapSourcePlugin", compiler => {
const original = SourceMapSource.prototype._ensureSourceMapObject;
SourceMapSource.prototype._ensureSourceMapObject = function () {