@intrnl/rollup-plugin-esbuild
v0.5.1
Published
Transpile your source code with ESBuild
Downloads
28
Readme
rollup-plugin-esbuild
Transpile your source code with ESBuild, doing a two pass to prevent helper duplicates in your code.
Usage
npm install --save-dev @intrnl/rollup-plugin-esbuild
# pnpm install --save-dev @intrnl/rollup-plugin-esbuild
# yarn add --dev @intrnl/rollup-plugin-esbuild
// rollup.config.js
import { esbuild as esbuildPlugin } from '@intrnl/rollup-plugin-esbuild';
export default {
input: 'src/index.js',
plugins: [
esbuildPlugin(),
],
};
Options
include?: string | RegExp | (string | RegExp)[] | null
Files to include, defaults to matching all filesexclude?: string | RegExp | (string | RegExp)[] | null
Files to excludeloaders?: { [loader: Loader ]: string[] }
Loaders to use, files with extension that does not match any loaders will be ignoredtransformOptions?: TransformOptions
ESBuild transform options