Skip to content

Repository files navigation

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

About

A lightningscss rollup plugin

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages