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

Include a compiled ES5 version of all the JS modules #32

Open
andreekeberg opened this issue Nov 1, 2019 · 1 comment
Open

Include a compiled ES5 version of all the JS modules #32

andreekeberg opened this issue Nov 1, 2019 · 1 comment
Assignees
Labels
js JavaScript

Comments

@andreekeberg
Copy link
Member

Distribute the npm package with both a src and a dist folder, where we compile all source ES6 code with Babel to a single file in the dist folder (possibly using a prepublish hook in package.json), preferably where all modules are namespaced in a main bolts object.

@andreekeberg andreekeberg added the js JavaScript label Nov 1, 2019
@andreekeberg andreekeberg self-assigned this Nov 1, 2019
@andreekeberg
Copy link
Member Author

We should be able to solve this by shipping Bolts with one index.js and one index.es6.js, and specifying index.js as main, and index.es6.js as module in our package.json

Look at how react-sortablejs does it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js JavaScript
Projects
None yet
Development

No branches or pull requests

1 participant