This package has been deprecated

Author message:

This package has been deprecated and is no longer maintained. Please use @rollup/plugin-sucrase.

rollup-plugin-sucrase

2.1.0 • Public • Published

rollup-plugin-sucrase

Use Sucrase with Rollup.

Installation

yarn add -D rollup-plugin-sucrase

Usage

An example of compiling TypeScript (the node-resolve plugin is added to automatically add file extensions, since TypeScript expects not to find them):

// rollup.config.js
import sucrase from 'rollup-plugin-sucrase';
import resolve from 'rollup-plugin-node-resolve';
 
export default {
  input: 'src/index.ts',
  output: {
    file: 'dist/bundle.js',
    format: 'cjs'
  },
  plugins: [
    resolve({
       extensions: ['.js', '.ts' ]
    }),
     sucrase({
      exclude: ['node_modules/**'],
      transforms: ['typescript']
    })
  ]
}

License

LIL.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i rollup-plugin-sucrase

    Weekly Downloads

    30

    Version

    2.1.0

    License

    LIL

    Unpacked Size

    4 kB

    Total Files

    5

    Last publish

    Collaborators

    • alangpierce
    • rich_harris
    • shellscape