javascript
javascript copied to clipboard
Setup babel compiling for all packages
Explanation
At this moment, we don't compile our packages using babel. This means that we are essentially publishing our source. This means that consumers of our packages need to run babel on our packages. This is a huge burden on a consumer of one of our packages.
Technical decisions
- We should compile all our packages to two versions:
buildandbuild-module. -
buildshould contain a version where everything is put through babel with all features turned on. -
build-moduleshould contain a version where everything is put through babel EXCEPT ES6 module syntax. This build is meant for consumers that support tree-shaking such as webpack or rollup.