Closed aleclarson closed 6 years ago
Sucrase has been added (see here). 🎉
flow-bin
in its devDependencies
.jsx
or .tsx
extension (sorry).ts
or .tsx
extensionimport
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.
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).