10up-toolkit
10up-toolkit copied to clipboard
The `--hot` option breaks when used with `useScriptModules`
Describe the bug
The new modules support does not work well with HMR. Ideally we get it to work with modules or at the very least keep it working for CJS modules.
Steps to Reproduce
- Set
useScriptModulesto true - Run
10up-toolkit watch --hot
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
+1
It throws an error:
[ReactRefreshPlugin] Hot Module Replacement (HMR) is not enabled! React Refresh requires HMR to function properly.