dotkom / design-system

Component library, maybe
https://design.online.ntnu.no
MIT License
4 stars 4 forks source link

Move from microbundle to babel #135

Closed FluidSense closed 4 years ago

FluidSense commented 4 years ago

Since microbundle could not handle React.Fragment's shorthand syntax, I propose a change from microbundle to babel and perhaps webpack. This PR transpiles the design system and makes it usable as a package. However, it is not yet minimized or bundled.

FluidSense commented 4 years ago

An alternative could perhaps be to keep microbundle and pre-compile with the TypeScript-compiler tsc

FluidSense commented 4 years ago

I've landed on using tsc & webpack without babel after looking at this for the past two days. It's less dependencies, works for our setup and is easier to understand imo. I'll make a new PR on it pretty soon.