From 6e13add600a92f837e93e0b989c6c07d89e27dfc Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 22 Feb 2021 11:29:23 +0100 Subject: [PATCH] fix(repalce): add types for `preventAssignment` option --- packages/replace/types/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/replace/types/index.d.ts b/packages/replace/types/index.d.ts index 642a8c10f..a76fd76dd 100755 --- a/packages/replace/types/index.d.ts +++ b/packages/replace/types/index.d.ts @@ -28,6 +28,11 @@ export interface RollupReplaceOptions { * You can separate values to replace from other options. */ values?: { [str: string]: Replacement }; + /** + * Prevents replacing strings where they are followed by a single equals sign + * It is recommended to set this option to `true`, as the next major version will default this option to `true` + */ + preventAssignment?: Boolean; } /**