atmosphere-javascript
atmosphere-javascript copied to clipboard
Support ES Modules
Hi @jfarcand,
Currently, the codebase supports AMD, commonjs and global (the UMD pattern). But, there is not support for ES Modules, so my question is: is there a plan to support it?
There are a lot of benefits by using ES Modules, such as tree shaking for example. I think that adding support for ES Modules need some changes, at least:
- Do not rely on java yui compressor, since it does not support ES Modules.
- Distribute both UMD package and ES packages.
If that is something that can interest you, I think I can start working on it. What do you think?
What do you think about this @jfarcand? Everything is starting to be esm these days and some tooling even requires esm. We currently have a problem with using Atmosphere because of a @web/dev-server issue
In the world I am living in, no other distribution than ESM is needed at all but others might have different needs.
I published an esm version as https://www.npmjs.com/package/a-atmosphere-javascript to get around this
@Artur- Sound like I've completely missing the message from @mjeanroy. I would have say GO let's do it.
@Artur- Just do a pull request and I will release it under 4.0.0, and maintain 3.1.x amd