Browse Source

Update incorrect 'ignoreRequireImports' to 'ignoreImports' (#1086)

Introduced by PR#1010
fuka 3 years ago
parent
commit
88bfc0e4b9
2 changed files with 3 additions and 3 deletions
  1. 2 2
      README.md
  2. 1 1
      test/dev/dev.ts

+ 2 - 2
README.md

@@ -355,7 +355,7 @@ Following options are available for the JS Obfuscator:
     identifierNamesGenerator: 'hexadecimal',
     identifierNamesGenerator: 'hexadecimal',
     identifiersDictionary: [],
     identifiersDictionary: [],
     identifiersPrefix: '',
     identifiersPrefix: '',
-    ignoreRequireImports: false,
+    ignoreImports: false,
     inputFileName: '',
     inputFileName: '',
     log: false,
     log: false,
     numbersToExpressions: false,
     numbersToExpressions: false,
@@ -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.
 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`
 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.
 Prevents obfuscation of `require` imports. Could be helpful in some cases when for some reason runtime environment requires these imports with static strings only.

+ 1 - 1
test/dev/dev.ts

@@ -32,7 +32,7 @@
             "stringArrayThreshold": 0,
             "stringArrayThreshold": 0,
             "transformObjectKeys": true,
             "transformObjectKeys": true,
             "unicodeEscapeSequence": false,
             "unicodeEscapeSequence": false,
-            "ignoreRequireImports": false
+            "ignoreImports": false
         }
         }
     ).getObfuscatedCode();
     ).getObfuscatedCode();