Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Latest commit

 

History

History

esbuild

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

postcss

🍣 A Rollup plugin to apply esbuild transforms to code.

Usage

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.

Options

exclude

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.

include

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.

transformOptions

Type: Object

Esbuild transform options.

Meta

LICENSE (MIT)