A GitHub template for creating a Rspack minimal reproducible example.
- Clone the repo
- Install the dependencies (
yarn install) - Run
yarn run dev:rspack - You should see one TypeScript error in the terminal. Change
to
const variable: string = 123;
inconst variable: number = 123;
./src/index.ts. The TypeScript error will be fixed, but the same error will still be shown in the terminal. - Restart
yarn run dev:rspack. The error will no longer be shown. Now changetoconst variable: number = 123;
inconst variable: string = 123;
./src/index.ts. There should be a TypeScript error again, but it does not appear in the terminal. - Restart
yarn run dev:rspack. You should now see one TypeScript error in the terminal.
If we change experiments.nativeWatcher to
false- steps 5 and 6 will not reproduce.
- After fixing the error (step 4), the error message should disappear from the terminal.
- After introducing a new error (step 5), the error message should immediately appear in the terminal without requiring a restart.
- After fixing the error (step 4), the error message still remains in the terminal.
- After introducing a new error (step 5), the error message does not appear until the process is restarted.