The content of this section is derived from the content of the following links and is subject to the CC BY 4.0 license.
The following contents can be assumed to be the result of modifications and deletions based on the original contents if not specifically stated.
Rspack can watch files and recompile whenever they change.
booleanfalseTurn on watch mode. This means that after the initial build, Rspack will continue to watch for changes in any of the resolved files.
module.exports = {
// ...
watch: true,
};In @rspack/dev-server watch mode is enabled by default.
objectA set of options used to customize watch mode.
module.exports = {
// ...
watchOptions: {
ignored: /node_modules/,
poll: true,
},
};RegExp, string, string[]The path that matches is excluded while watching.
boolean, numberfalseWhether to watch by polling, the default polling interval for true is 5007 milliseconds.