Replies: 2 comments 7 replies
-
|
btw, I converted word2md to esm: it's more or less straightforward. the biggest problem are some of the missing features like |
Beta Was this translation helpful? Give feedback.
-
The list above seems rather manageable and the packages don't appear to be essential, i.e. I guess there are plenty of alternatives. What exactly would be the benefit of rewriting our entire code base to support ESM, considering the risks (experimental node support) and effort involved? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
see adobe/helix-deploy#227
Some of the dependencies major versions are now modules and are no longer provided as CommonJS modules.
https://github.com/adobe/helix-shared/pull/487/files#diff-7b5c8955fc544a11b4b74eddb4115f9cc51c9cf162dbffa60d37eeed82a55a57
If we would want to use them, we would need to enable the ESM loader for building and testing. which would affect all our libraries and services. also see the note in https://nodejs.org/en/blog/release/v14.0.0/:
i.e. I would only feel comfortable to enable ESM, if we also require node14.
As for deployment, we can either babel+webpack and create a CommonJS bundle, then we don't need use ESM on the runtimes,
or we can create ESM bundle.
Also note, that we need to rewrite ALL code of the services that use ESM dependencies and switch them to modules (because there is no way to
requirea module dependency.action items:
Beta Was this translation helpful? Give feedback.
All reactions