10up-toolkit icon indicating copy to clipboard operation
10up-toolkit copied to clipboard

The `--hot` option breaks when used with `useScriptModules`

Open nicholasio opened this issue 1 year ago • 1 comments

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

  1. Set useScriptModules to true
  2. 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

nicholasio avatar Oct 23 '24 15:10 nicholasio

+1

It throws an error:

[ReactRefreshPlugin] Hot Module Replacement (HMR) is not enabled! React Refresh requires HMR to function properly.

smachi avatar Nov 11 '24 17:11 smachi