From 88bfc0e4b9d269cdac76548c015d79a0bcf815c1 Mon Sep 17 00:00:00 2001 From: fuka Date: Sat, 7 May 2022 21:30:30 +0200 Subject: [PATCH] Update incorrect 'ignoreRequireImports' to 'ignoreImports' (#1086) Introduced by PR#1010 --- README.md | 4 ++-- test/dev/dev.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f8ff738..3695adc0 100644 --- a/README.md +++ b/README.md @@ -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, @@ -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. diff --git a/test/dev/dev.ts b/test/dev/dev.ts index ec778a48..7190cd66 100644 --- a/test/dev/dev.ts +++ b/test/dev/dev.ts @@ -32,7 +32,7 @@ "stringArrayThreshold": 0, "transformObjectKeys": true, "unicodeEscapeSequence": false, - "ignoreRequireImports": false + "ignoreImports": false } ).getObfuscatedCode();