alloc / cush

WIP module bundler 🎁
MIT License
0 stars 0 forks source link

use 'sucrase' #1

Closed aleclarson closed 6 years ago

aleclarson commented 6 years ago

https://github.com/alangpierce/sucrase

Using this for flow and TypeScript type removal sounds really promising, as well as JSX if the bundle's targeted environment supports ES6 (in which case, the Bublé step can be skipped, which currently provides the JSX transform).

aleclarson commented 6 years ago

Sucrase has been added (see here). 🎉

import and export statements are converted into their CommonJS equivalents.

Sucrase is applied to each file used by any bundle. It's applied before any bundle-specific plugins.