mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
dev
This commit is contained in:
Vendored
+3
-2
@@ -13,8 +13,9 @@ class JavaScriptObfuscator {
|
||||
static generateCode(astTree, options) {
|
||||
let escodegenParams = Object.assign({}, JavaScriptObfuscator.escodegenParams);
|
||||
if (options.hasOwnProperty('compact')) {
|
||||
escodegenParams.format = {};
|
||||
escodegenParams.format.compact = options.compact;
|
||||
escodegenParams.format = {
|
||||
compact: options.compact
|
||||
};
|
||||
}
|
||||
return escodegen.generate(astTree, escodegenParams);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user