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
+7
View File
@@ -343,6 +343,7 @@ Following options are available for the JS Obfuscator:
identifierNamesGenerator: 'hexadecimal',
identifiersDictionary: [],
identifiersPrefix: '',
ignoreRequireImports: false,
inputFileName: '',
log: false,
numbersToExpressions: false,
@@ -396,6 +397,7 @@ Following options are available for the JS Obfuscator:
--identifier-names-generator <string> [dictionary, hexadecimal, mangled, mangled-shuffled]
--identifiers-dictionary '<list>' (comma separated)
--identifiers-prefix <string>
--ignore-require-imports <boolean>
--log <boolean>
--numbers-to-expressions <boolean>
--options-preset <string> [default, low-obfuscation, medium-obfuscation, high-obfuscation]
@@ -702,6 +704,11 @@ Sets prefix for all global identifiers.
Use this option when you want to obfuscate multiple files. This option helps to avoid conflicts between global identifiers of these files. Prefix should be different for every file.
### `ignoreRequireImports`
Type: `boolean` Default: `false`
Prevents obfuscation of `require` imports. Could be helpful in some cases when for some reason runtime environment requires these imports with static strings only.
### `inputFileName`
Type: `string` Default: `''`