New option ignoreRequireImports prevents obfuscation of require imports

This commit is contained in:
sanex
2020-11-07 11:49:48 +03:00
parent 0c13f96f68
commit 8ae8e0b50b
19 changed files with 171 additions and 20 deletions
+5
View File
@@ -1,3 +1,4 @@
/* eslint-disable max-lines */
import * as commander from 'commander';
import * as path from 'path';
@@ -250,6 +251,10 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
'Identifiers dictionary (comma separated) for `--identifier-names-generator dictionary` option',
ArraySanitizer
)
.option(
'--ignore-require-imports <boolean>', 'Prevents obfuscation of `require` imports',
BooleanSanitizer
)
.option(
'--log <boolean>', 'Enables logging of the information to the console',
BooleanSanitizer