1.0.1 • Published 3 years ago

esbuild-plugin-solid-js v1.0.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

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

1.0.1

3 years ago

1.0.0

3 years ago