Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.08 KB

File metadata and controls

36 lines (26 loc) · 1.08 KB

rollup-plugin-thunder

A rollup plugin to transform CSS with lightningcss.

Install

npm install -D rollup-plugin-thunder

Usage

// rollup.config.mjs
import thunder from "rollup-plugin-thunder";

export default {
  input: "src/index.ts",
  output: { file: "dist/bundle.js", format: "es" },
  plugins: [thunder()],
};

Options

Option Type Default Description
include string[] Files to include (picomatch patterns)
exclude string[] Files to exclude (picomatch patterns)
options object lightningcss transform options
styleSheet boolean false Emit CSSStyleSheet instead of raw CSS string
autoModules boolean false Enable CSS modules for *.module.css files

License

MIT