complugin-sucrase
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

complugin-sucrase

npm size

Complugin to compile bundles with the sucrase.

Usage

Vite
// vite.config.ts
import compluginSucrase from 'complugin-sucrase'

export default {
  plugins: [
    compluginSucrase.vite({
      /* options */
    })
  ]
}
Rollup
// rollup.config.js
import compluginSucrase from 'complugin-sucrase'

export default {
  plugins: [
    compluginSucrase.rollup({
      /* options */
    })
  ]
}
Webpack
// webpack.config.js
const compluginSucrase = require('complugin-sucrase').default

module.exports = {
  plugins: [
    compluginSucrase.webpack({
      /* options */
    })
  ]
}
esbuild
// esbuild.config.js
import _esbuild from 'esbuild'
import { proxyEsbuild } from 'complugin'
import compluginSucrase from 'complugin-sucrase'

// Cannot be omitted
const esbuild = proxyEsbuild(_esbuild)

esbuild.build({
  plugins: [
    compluginSucrase.esbuild({
      /* options */
    })
  ]
})

Give a ⭐️ if this project helped you!

License

MIT License © 2022 xxXyh1908

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    1
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i complugin-sucrase

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

11.3 kB

Total Files

10

Last publish

Collaborators

  • xyh19