Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(replace): add types for preventAssignment option #810

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/replace/types/index.d.ts
Expand Up @@ -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;
}

/**
Expand Down