# complugin-sucrase **Repository Path**: xxXyh1908/complugin-sucrase ## Basic Information - **Project Name**: complugin-sucrase - **Description**: complugin to compile bundles with the sucrase. - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-07-05 - **Last Updated**: 2022-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [npm]: https://img.shields.io/npm/v/complugin-sucrase [npm-url]: https://www.npmjs.com/package/complugin-sucrase [size]: https://packagephobia.now.sh/badge?p=complugin-sucrase [size-url]: https://packagephobia.now.sh/result?p=complugin-sucrase # complugin-sucrase [![npm][npm]][npm-url] [![size][size]][size-url] Complugin to compile bundles with the [`sucrase`](https://www.npmjs.com/package/sucrase). ## Usage ##### Vite ```ts // vite.config.ts import compluginSucrase from 'complugin-sucrase' export default { plugins: [ compluginSucrase.vite({ /* options */ }) ] } ``` ##### Rollup ```ts // rollup.config.js import compluginSucrase from 'complugin-sucrase' export default { plugins: [ compluginSucrase.rollup({ /* options */ }) ] } ``` ##### Webpack ```ts // webpack.config.js const compluginSucrase = require('complugin-sucrase').default module.exports = { plugins: [ compluginSucrase.webpack({ /* options */ }) ] } ``` ##### esbuild ```ts // 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) License © 2022 xxXyh1908