Improve build system and support ESM #4235
winston0410
started this conversation in
Feature Requests
Replies: 3 comments
-
I would like to add that npm packages started to drop CJS support rendering them incompatible with medusa. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Our company is very on the fence about using Medusa and this could be a big deal breaker. Seems like the underlying tech setup is ~5-8 years behind in terms of bundling, etc. Would like to hear more from the devs on their plans forward with this |
Beta Was this translation helpful? Give feedback.
0 replies
-
The longer this is unresolved, the more it will become a problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now medusa is only supporting CJS module, and used babel as the compile/build tool. This setup is 4~5 years older than the modern system, and as Vite and ESM is becoming mainstream now, I think it will be great to modernize the build tool
Two limitations with the current setup:
medusa develop
in a monorepo that installs packages globally(e.g Nx), as it is using a Babel with a hardcoded pathBeta Was this translation helpful? Give feedback.
All reactions