Parcel v2 generates several JS files which cannot be ran by node #9255
Unanswered
declanelcocks
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Try adding |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the past I was using Parcel v1 along with
parcel-plugin-run-server
to build adist
output of a TypeScript Node.js backend and run it. The options were quite simple:This would generate some static files and one, big
dist/main.js
file that the plugin could run usingnode dist/main.js
. I've tried to copy these options across to Parcel v2 with:This will build
dist/main.js
but it will also build several other files likemain.5c9552c8.js
. This itself is fine, I guess it's code splitting the bundles as the docs explain, but when runningnode dist/main.js
it now results in this error:Can I configure Parcel to output a single JS file? Or is there something else I'm missing?
Thanks 🙏
(Seems similar to #5683)
Beta Was this translation helpful? Give feedback.
All reactions