Skip to content

Commit 4098bd5

Browse files
committed
fix(replace): add missing objectGuards option to RollupReplaceOptions
1 parent 92daef0 commit 4098bd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/replace/types/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export interface RollupReplaceOptions {
2323
* Files that should be excluded, if `include` is otherwise too permissive.
2424
*/
2525
exclude?: FilterPattern;
26+
/**
27+
* When replacing dot-separated object properties like `process.env.NODE_ENV`,
28+
* will also replace `typeof process` object guard checks against the objects
29+
* with the string `"object"`
30+
*/
31+
objectGuards?: boolean;
2632
/**
2733
* If false, skips source map generation. This will improve performance.
2834
* @default true

0 commit comments

Comments
 (0)