Removed source-map-support runtime dependency (#1399)

This commit is contained in:
Timofey Kachalov
2026-03-22 16:18:03 +04:00
committed by GitHub
parent 8a67a82914
commit fb74744555
5 changed files with 20 additions and 8 deletions
-4
View File
@@ -1,7 +1,6 @@
const fs = require('fs');
const copyright = 'Copyright (C) 2016-2026 Timofei Kachalov <support@obfuscator.io>';
const sourceMapSupportRequire = 'require("source-map-support").install();';
class WebpackUtils {
/**
@@ -21,9 +20,6 @@ class WebpackUtils {
fs.readFileSync('./LICENSE.BSD', 'utf8') + "\n*/";
}
static getSourceMapSupportImport () {
return sourceMapSupportRequire;
}
}
module.exports.WebpackUtils = WebpackUtils;
+1 -2
View File
@@ -48,8 +48,7 @@ module.exports = {
new webpack.BannerPlugin(
{
banner: WebpackUtils.getBannerText(
WebpackUtils.getLicenseText(),
WebpackUtils.getSourceMapSupportImport()
WebpackUtils.getLicenseText()
),
raw: true,
entryOnly: false