Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
esbuild-plugin-solid
Advanced tools
Plugin to compile solid jsx components with esbuild.
solid-js
and esbuild
are peer dependencies
# For npm
npm install solid-js
npm install -D esbuild esbuild-plugin-solid
# For pnpm
pnpm add solid-js
pnpm add -D esbuild esbuild-plugin-solid
# For yarn
yarn add solid-js
yarn add -D esbuild esbuild-plugin-solid
Once installed you need to configure esbuild
to use this plugin.
const { build } = require('esbuild');
const { solidPlugin } = require('esbuild-plugin-solid');
build({
entryPoints: ['app.jsx'],
bundle: true,
outfile: 'out.js',
plugins: [solidPlugin()],
}).catch(() => process.exit(1))
There's no configuration as of now.
This is a 30 lines of code plugin. All it does is parse every import source code, check if JSX syntax is present using a dumb regex and transforming the file with @babel/core
, @babel/preset-typescript
and babel-preset-solid
.
Out of the box it checks every /(t|j)sx?/
files and only transforms the one with JSX syntax in it.
This package uses pnpm so you might want to install it if you don't have it.
Once done, you can just pnpm build
& pnpm test
to build & test your changes.
pnpm test
will build a dumb module with the plugin and open a local web server serving the tests
folder for you to check if things still work.
FAQs
Solid's integration for ESBuild
The npm package esbuild-plugin-solid receives a total of 9,025 weekly downloads. As such, esbuild-plugin-solid popularity was classified as popular.
We found that esbuild-plugin-solid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.