1.0.1 • Published 3 years ago
esbuild-plugin-solid-js v1.0.1
Overview
This is a simple plugin that transforms jsx files according to babel-preset-solid
with the addition of truly inlining sourcemaps.
Usage
import solid from "esbuild-plugin-solid-js"
Esbuild.build({
plugins: [solid]
})
A note about Typescript configuration
In order for solid and sourcemaps to work with typescript you should set the following configurations in your tsconfig.json
{
"jsx": "preserve",
"jsxImportSource": "solid-js",
"inlineSources": true,
"inlineSourceMap": true,
"inlineSources": true
}
Remember that this plugin ONLY transpiles jsx
files, it does NOT perform any form of typescript transpilation