Registry / devops / esbuild-plugin-gsolid

esbuild-plugin-gsolid

JSON →
library1.1.0jsnpmunverified

ESBuild plugin for compiling SolidJS JSX/TSX components via GSolid. Version 1.1.0, released December 2024. Integrates GSolid into esbuild builds, supporting SolidJS' reactive syntax with GSolid's optimizations. Requires esbuild ^0.28.0 and babel-preset-solid ^1.9.12 as peer dependencies. Primarily used for building SolidJS applications with esbuild instead of Vite or other bundlers. Ship: stable, TypeScript types included.

devops
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Default export only. Named import causes undefined error.

import gsolidPlugin from 'esbuild-plugin-gsolid'

Type import only available in TypeScript; do not use value import as it is not exported.

import type { PluginConfig } from 'esbuild-plugin-gsolid'

CJS require acts as default import; destructuring the export yields undefined.

const gsolidPlugin = require('esbuild-plugin-gsolid')

Build a SolidJS application with esbuild using the GSolid plugin. Entry point is a TSX file, output is bundled JS.

import esbuild from 'esbuild'; import gsolidPlugin from 'esbuild-plugin-gsolid'; await esbuild.build({ entryPoints: ['src/index.tsx'], bundle: true, outfile: 'dist/bundle.js', plugins: [gsolidPlugin()], loader: { '.tsx': 'tsx', '.jsx': 'jsx' }, });
Debug
Known footguns
breakingRequires esbuild ^0.28.0; older versions are incompatible.
deprecatedThe plugin does not yet support esbuild 0.29.x changes.
gotchaDefault import only; named import will silently return undefined.
gotchaThe plugin must be called as a function in the plugins array.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
8 hits · last 30 days
gptbot
3
ahrefsbot
2
Resources