@sucrase/gulp-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Sucrase Gulp plugin

npm version MIT License

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']}))
...

Readme

Keywords

none

Package Sidebar

Install

npm i @sucrase/gulp-plugin

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

2.81 kB

Total Files

5

Last publish

Collaborators

  • alangpierce