@sucrase/gulp-plugin
v2.0.0
Published
Gulp plugin for Sucrase
Downloads
13
Readme
Sucrase Gulp plugin
This is a simple Gulp plugin that makes it easy to tie Sucrase into your build.
Usage
Sucrase is a peer dependency, so you'll need to install it as well:
yarn add --dev @sucrase/gulp-plugin sucrase
In your gulpfile, you can add it like this:
const sucrase = require('@sucrase/gulp-plugin');
...
.pipe(sucrase({transforms: ['imports', 'jsx']}))
...