Skip to content

Commit

Permalink
fix(replace): add missing objectGuards option to RollupReplaceOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkz committed Nov 26, 2024
1 parent 92daef0 commit 4098bd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/replace/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export interface RollupReplaceOptions {
* Files that should be excluded, if `include` is otherwise too permissive.
*/
exclude?: FilterPattern;
/**
* When replacing dot-separated object properties like `process.env.NODE_ENV`,
* will also replace `typeof process` object guard checks against the objects
* with the string `"object"`
*/
objectGuards?: boolean;
/**
* If false, skips source map generation. This will improve performance.
* @default true
Expand Down

0 comments on commit 4098bd5

Please sign in to comment.