-
-
Notifications
You must be signed in to change notification settings - Fork 770
Open
Copy link
Labels
PR welcometeamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.
Description
What problem does this feature solve?
As a framework developer, I would like to add some extra watchOptions.ignored
configuration. If the original watchOptions.ignored
is a RegExp, I cannot make the user configuration and my configuration work at the same time, because rspack does not support the (string | RegExp)[]
type
https://rspack.rs/config/watch#watchoptionsignored
User's configuration:
export default {
//...
watchOptions: {
ignored: /\.git/,
},
};
After merged configuration:
export default {
//...
watchOptions: {
ignored: [/\.git/, '**/dist'],
},
};
What does the proposed API of configuration look like?
watchOptions.ignored
support (string | RegExp)[]
type.
- type ignored = RegExp | string | string[];
+ type ignored = RegExp | string | (string | RegExp)[];
Metadata
Metadata
Assignees
Labels
PR welcometeamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.