-
Notifications
You must be signed in to change notification settings - Fork 67
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 ES module build #129
Comments
Shouldn't be too hard to implement. I'll put it on the list. Thanks for the suggestion! |
I can create a PR. Just like to know the direction. Still use the current concatenation build through grunt or change to something like rollup? |
For now it would be best to make a new grunt task; probably as simple as creating a new exports wrapper for es modules, concat the source and wrap it. |
Maybe rename this file to |
This has been merged and will be released as v2.0.0 (since it is a potentially breaking change for some webpack users) |
How does one make it work with webpack?
|
Solved above... it's a Typescript thing. I simply changed the way I import bottlejs from:
to
|
The above worked at runtime, but fails in JEST with I switched to Library (https://github.com/onicagroup/sailplane/pull/100/files) and end project (an AWS Lambda) both use commonjs. No means of importing bottlejs v2 works for all scenarios. |
Currently bottlejs is distributed only as a umd module.
With an ES module build is possible to take advantage of tools like https://github.com/pikapkg/web
Its possible to have both builds (es and umd) by using module field: https://github.com/rollup/rollup/wiki/pkg.module
If deems appropriate i can help implementing it
The text was updated successfully, but these errors were encountered: