mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
New option ignoreRequireImports prevents obfuscation of require imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user