mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Removed source-map-support runtime dependency (#1399)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -48,8 +48,7 @@ module.exports = {
|
||||
new webpack.BannerPlugin(
|
||||
{
|
||||
banner: WebpackUtils.getBannerText(
|
||||
WebpackUtils.getLicenseText(),
|
||||
WebpackUtils.getSourceMapSupportImport()
|
||||
WebpackUtils.getLicenseText()
|
||||
),
|
||||
raw: true,
|
||||
entryOnly: false
|
||||
|
||||
Reference in New Issue
Block a user