Skip to content

Commit

Permalink
Update incorrect 'ignoreRequireImports' to 'ignoreImports' (#1086)
Browse files Browse the repository at this point in the history
Introduced by PR#1010
  • Loading branch information
fuka-g committed May 7, 2022
1 parent ce5ab51 commit 88bfc0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ Following options are available for the JS Obfuscator:
identifierNamesGenerator: 'hexadecimal',
identifiersDictionary: [],
identifiersPrefix: '',
ignoreRequireImports: false,
ignoreImports: false,
inputFileName: '',
log: false,
numbersToExpressions: false,
Expand Down Expand Up @@ -836,7 +836,7 @@ 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`
### `ignoreImports`
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.
Expand Down
2 changes: 1 addition & 1 deletion test/dev/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"stringArrayThreshold": 0,
"transformObjectKeys": true,
"unicodeEscapeSequence": false,
"ignoreRequireImports": false
"ignoreImports": false
}
).getObfuscatedCode();

Expand Down

0 comments on commit 88bfc0e

Please sign in to comment.