javascript icon indicating copy to clipboard operation
javascript copied to clipboard

Setup babel compiling for all packages

Open atimmer opened this issue 6 years ago • 0 comments

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: build and build-module.
  • build should contain a version where everything is put through babel with all features turned on.
  • build-module should 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.

Feedback?

atimmer avatar Apr 03 '19 11:04 atimmer