diff --git a/packages/replace/types/index.d.ts b/packages/replace/types/index.d.ts index 1f0794719..a46f7286a 100755 --- a/packages/replace/types/index.d.ts +++ b/packages/replace/types/index.d.ts @@ -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