🍣 A Rollup plugin to apply esbuild transforms to code.
Create a rollup.config.js
configuration file and
import the plugin:
import { esbuild } from "https://deno.land/x/drollup@2.58.0+0.20.0/plugins/esbuild/mod.ts";
export default {
input: "./src/mod.ts",
output: {
dir: "./dist",
format: "es" as const,
},
plugins: [esbuild({ loader: "ts", minify: true })],
};
Then call rollup
either via the
CLI or the
API.
Type: string
| string[]
Default: null
A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.
Type: string
| string[]
Default: null
A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.
Type: Object
Esbuild transform options.