Commits
Click on a commit to change the comparison rangefix(template-react-ts): work with newer Node
Summary:
On my machine running Node v23.11.0, running this example fails with two errors:
1. `__dirname` is undefined
2. `RefreshPlugin` is an object instead of a class
This commit fixes both of these errors.
Test Plan:
1. use Node v23.11.0
2. run `pnpm create rspack@latest`
3. select react-typescript config
4. run `pnpm run dev`
Before this commit: it doesn't work
After this commit: it works