complugin-sucrase
v1.1.1
Published
complugin to compile bundles with the sucrase.
Downloads
7
Maintainers
Readme
complugin-sucrase
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