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

Make dojo more ESM friendly #905

Open
matt-gadd opened this issue May 27, 2021 · 0 comments
Open

Make dojo more ESM friendly #905

matt-gadd opened this issue May 27, 2021 · 0 comments

Comments

@matt-gadd
Copy link
Contributor

Enhancement
Currently we ship a bit of a mishmash of module formats. The default .js we ship is legacy ES5 and UMD. Then we also ship .mjs which is pseudo modern in that it has ESM style imports but not quite correct. Would like to propose some changes to make this work out the box better.

  • The mjs is currently not picked up at all by ESM cdn's such as jspm. Do we need a package exports set up for ESM?
  • Should we be appending file extensions to our ESM module names for in browser?
  • Explore import maps and usage with framework
  • Currently the static-build-loader in webpack-contrib takes our modules and makes optimisations for modern browsers at app build time. It would be good if we could apply these optimisations to the mjs for the actual package up front.
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

No branches or pull requests

1 participant