Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
thunder
✓ import thunder from 'rollup-plugin-thunder'
✗ const thunder = require('rollup-plugin-thunder')
Default import. CommonJS require will fail; ESM-only since v1.
clasess
✓ import { clasess } from 'rollup-plugin-thunder'
✗ import { classes } from 'rollup-plugin-thunder'
Named export for CSS class list. Spelling is intentional: 'clasess' (double s). Breaking change in v2.0.0.
C
✓ import { C } from 'rollup-plugin-thunder'
Shorthand named export for clasess (available since v2.0.0).
type Options
✓ import type { Options } from 'rollup-plugin-thunder'
✗ import { Options } from 'rollup-plugin-thunder'
Type import for TypeScript users. Only available as type, not runtime value.
Configures Rollup with Thunder plugin for CSS processing: minification, source maps, CSS modules, and auto-module detection.
import thunder from 'rollup-plugin-thunder';
export default {
input: 'src/index.css',
plugins: [
thunder({
minify: true,
sourceMap: true,
modules: true,
autoModules: /\\.module\\.css$/,
}),
],
output: {
dir: 'dist',
format: 'esm',
},
};
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported.
Using CommonJS require() to import an ESM-only package.
fixUse dynamic import: const thunder = await import('rollup-plugin-thunder'); Module '"rollup-plugin-thunder"' has no exported member 'classes'.
Named export 'classes' was renamed to 'clasess' in v2.0.0.
fixUse 'clasess' or 'C' instead of 'classes'.
TypeError: thunder is not a function
Default import used as function but imported as named export.
fixUse default import: import thunder from 'rollup-plugin-thunder'
Audit
Dependencies
lightningcssrequiredCore CSS processing engine
enhanced-resolverequiredModule resolution for CSS imports