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

Add module version of library #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

creationix
Copy link

Browserify is great for rapid development, especially if you're used to node code. But I need something easier to work with. The new ES6 format is amazing for easy tooling, especially when using rollup. I get tiny bundles on the browser using this method.

This PR adds an ES6 version of the library and adds it to package.json as pkg.module.
https://github.com/rollup/rollup/wiki/pkg.module

For now it duplicates the code. At some point, you might want a build task to generate the CJS version from this version to keep things in sync easier.

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

Successfully merging this pull request may close these issues.

None yet

1 participant