
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@rolldown/plugin-styled-jsx
Advanced tools
Rolldown plugin for styled-jsx CSS scoping.
This plugin utilizes Rolldown's native magic string API instead of Babel and is more performant than using styled-jsx/babel with @rolldown/plugin-babel.
pnpm add -D @rolldown/plugin-styled-jsx
import styledJsx from '@rolldown/plugin-styled-jsx'
export default {
plugins: [
styledJsx({
// options
}),
],
}
browsersTargets (from lightningcss)undefinedTarget browser versions for CSS transpilation. See the lightningcss documentation for details.
styledJsx({
browsers: {
chrome: 95 << 16,
firefox: 90 << 16,
},
})
sourceMapbooleantrue in development, false otherwiseGenerates inline source maps for scoped CSS, allowing browser DevTools to map styles back to where they are defined in the source file.
styledJsx({
sourceMap: true,
})
Results of the benchmark that can be run by pnpm bench in ./benchmark directory:
name hz min max mean p75 p99 p995 p999 rme samples
· @rolldown/plugin-styled-jsx 10.9402 89.9217 96.5430 91.4056 91.2763 96.5430 96.5430 96.5430 ±1.49% 10
· @rolldown/plugin-babel 4.3779 223.52 238.96 228.42 230.16 238.96 238.96 238.96 ±1.65% 10
· @rollup/plugin-swc 9.4885 103.62 109.31 105.39 105.83 109.31 109.31 109.31 ±1.11% 10
@rolldown/plugin-styled-jsx - bench/styled-jsx.bench.ts > Styled JSX Benchmark
1.15x faster than @rollup/plugin-swc
2.50x faster than @rolldown/plugin-babel
The benchmark was ran on the following environment:
OS: macOS Tahoe 26.3
CPU: Apple M4
Memory: LPDDR5X-7500 32GB
MIT
The implementation is based on swc-project/plugins/packages/styled-jsx (Apache License 2.0). Test cases are also adapted from it.
FAQs
Rolldown plugin for styled-jsx CSS scoping
The npm package @rolldown/plugin-styled-jsx receives a total of 13 weekly downloads. As such, @rolldown/plugin-styled-jsx popularity was classified as not popular.
We found that @rolldown/plugin-styled-jsx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.