Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch mode fails for CommonJS consumers #5

Closed
dominicbirch opened this issue Dec 23, 2022 · 1 comment · Fixed by #6
Closed

Watch mode fails for CommonJS consumers #5

dominicbirch opened this issue Dec 23, 2022 · 1 comment · Fixed by #6

Comments

@dominicbirch
Copy link
Owner

see #2

@dominicbirch
Copy link
Owner Author

@pmwmedia it seems to be related to the naming of the split chunks by parcel; renaming the worker chunk and updating the require to be for .cjs resolves the issue. I will look at resolving this asap, but in the meantime, since I think you are using via ts-node > webpack.config.ts it might be easiest to update the following in your tsconfig.json so that it outputs esm (assuming no other impact by doing this, not sure what else you might be loading in this way 😄)

  "ts-node": {
      "compilerOptions": {
          "module": "ESNext",
          "target": "ESNext",
      }
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant