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

Rewrite to ESM #226

Open
backspaces opened this issue Jun 29, 2019 · 1 comment
Open

Rewrite to ESM #226

backspaces opened this issue Jun 29, 2019 · 1 comment
Milestone

Comments

@backspaces
Copy link

This is a request for an es6 module version of the project.

Generally I'd suggest simple running rollup with the rollup-plugin-commonjs which converts many legacy repos. Alas this does not work here. There is another issue request for CJS format, and if that is done, then rollup-plugin-commonjs would work.

Just to be clear, and I've guided other repos thru the process, the simplest approach is:

  • Convert to modern es6+ or at least es6 import/export
  • Use Rollup to convert that to UMD or IIFE formats

In other words, the root design is es6 modules, converting to any other format with Rollup. It Just Works.

@LeaVerou
Copy link
Owner

Yup, this is a huge goal of mine going forwards, especially as I want to use Bliss in ESM projects of mine!

@LeaVerou LeaVerou changed the title Provide es6 modules Rewrite to ESM Oct 21, 2020
@LeaVerou LeaVerou added this to the Bliss 2.0 milestone Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants