npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rolldown-plugin-dom-expressions-jsx-compiler

v0.1.0

Published

Rolldown transform plugin for the native DOM Expressions JSX compiler.

Downloads

138

Readme

rolldown-plugin-dom-expressions-jsx-compiler

rolldown-plugin-dom-expressions-jsx-compiler is a plugin library for Rolldown that transforms JSX and TSX into regular JavaScript.

This plugin uses @dom-expressions/jsx-compiler under the hood, which is also used in vite-plugin-solid when in native mode.

It exports two factories:

  • jsx is renderer-agnostic and requires a moduleName.
  • solid applies the Solid 2 defaults for @solidjs/web.

How to use

Install rolldown-plugin-dom-expressions-jsx-compiler

The first command installs the generic plugin. Install solid-js and @solidjs/web only when using solid().

npm

npm install -D rolldown rolldown-plugin-dom-expressions-jsx-compiler
npm install solid-js@next @solidjs/web@next # When targeting Solid.js

yarn

yarn add -D rolldown rolldown-plugin-dom-expressions-jsx-compiler
yarn add solid-js@next @solidjs/web@next # When targeting Solid.js

pnpm

pnpm add -D rolldown rolldown-plugin-dom-expressions-jsx-compiler
pnpm add solid-js@next @solidjs/web@next # When targeting Solid.js

bun

bun add -D rolldown rolldown-plugin-dom-expressions-jsx-compiler
bun add solid-js@next @solidjs/web@next # When targeting Solid.js

deno

deno add --dev npm:rolldown npm:rolldown-plugin-dom-expressions-jsx-compiler
deno add npm:solid-js@next npm:@solidjs/web@next # When targeting Solid.js

vp

vp add -D rolldown rolldown-plugin-dom-expressions-jsx-compiler
vp add solid-js@next @solidjs/web@next # When targeting Solid.js

nub

nub add -D rolldown rolldown-plugin-dom-expressions-jsx-compiler
nub add solid-js@next @solidjs/web@next # When targeting Solid.js

Basic config for Solid.js

import { defineConfig } from "rolldown";
import { solid } from "rolldown-plugin-dom-expressions-jsx-compiler";

export default defineConfig({
  input: "src/App.tsx",
  plugins: [solid()],
  output: { sourcemap: true },
});

Basic config for a custom renderer

import { defineConfig } from "rolldown";
import jsx from "rolldown-plugin-dom-expressions-jsx-compiler";

export default defineConfig({
  input: "src/App.tsx",
  plugins: [jsx({ jsx: { generate: "universal", moduleName: "my-renderer" } })],
  output: { sourcemap: true },
});

API

jsx(options?: JsxPluginOptions)
solid(options?: JsxPluginOptions)

JsxPluginOptions supports include, exclude, and jsx. The jsx field accepts native compiler options except plugin-owned filename and sourceMap.

solid() applies its preset first, then shallowly applies options.jsx. Array options such as builtIns replace the preset array.

Compiler modes

// Universal renderer
jsx({ jsx: { generate: "universal", moduleName: "my-renderer" } });

// SSR renderer
jsx({ jsx: { generate: "ssr", moduleName: "my-renderer/server" } });

// Dynamic renderer with selected DOM elements
jsx({
  jsx: {
    generate: "dynamic",
    moduleName: "my-renderer",
    renderers: [
      {
        name: "dom",
        moduleName: "@solidjs/web",
        elements: ["article", "button", "div"],
      },
    ],
  },
});

// Solid SSR
solid({ jsx: { generate: "ssr", hydratable: true } });

Component integration tests

packages/component-tests is an independent consumer package. It imports the built plugin by package name and compiles real multi-file component graphs through Rolldown.

The suite covers Solid DOM, generic universal/SSR/dynamic modes, @solidjs/universal custom renderers, and @solidjs/h coexistence. It verifies generated imports, mode-specific output, TypeScript removal, and source maps without executing a renderer.

vp run --filter ./packages/component-tests check
vp run --filter ./packages/component-tests test

Development

vite plus and bun are required.

vp install
vp run check
vp run test
vp run build