rollup-plugin-thunder
v2.0.2
Published
A rollup lightningcss plugin
Maintainers
Readme
rollup-plugin-thunder
A rollup plugin to transform CSS with lightningcss.
Install
npm install -D rollup-plugin-thunderUsage
// 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
