1.0.2 • Published 3 years ago
@atomico/esbuild-jsx-runtime v1.0.2
Transferred to
@atomico/esbuild-jsx-runtime -> @uppercod/esbuild-jsx-runtime
This plugin provides a shallow implementation of jsx-runtime. it does not perform an analysis it only injects the jsxImportSource when working with jsx
ortsx
files.
Example
import pluginsJsxRuntime from "@atomico/esbuild-jsx-runtime";
import esbuild from "esbuild";
await esbuild.build({
entryPoints: ["./tests/example.jsx"],
plugins: [
pluginsJsxRuntime({
jsxFactory, // default "_jsx",
jsxFragment, // default "Fragment",
jsxImportSource, // default "atomico"
}),
],
});