@knighted/jsx 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
[](https://codecov.io/gh/knightedcodemonkey/jsx)
|
|
5
5
|
[](https://www.npmjs.com/package/@knighted/jsx)
|
|
6
6
|
|
|
7
|
-
A runtime JSX template tag backed by the [`oxc-parser`](https://github.com/oxc-project/oxc) WebAssembly build. Use real JSX syntax directly inside template literals and turn the result into live DOM nodes (or values returned from your own components) without running a bundler. One syntax works everywhere—browser scripts, SSR utilities, and bundler pipelines—no separate transpilation step required.
|
|
7
|
+
A runtime JSX template tag backed by the [`oxc-parser`](https://github.com/oxc-project/oxc) WebAssembly build. Use real JSX syntax directly inside template literals and turn the result into live DOM nodes (or values returned from your own components) without running a bundler. Prefer a build step? The loader can precompile templates so your runtime ships without loading the WASM parser. One syntax works everywhere—browser scripts, SSR utilities, and bundler pipelines—no separate transpilation step required.
|
|
8
8
|
|
|
9
9
|
## Key features
|
|
10
10
|
|
|
11
11
|
- **Parse true JSX with no build step** – template literals go through `oxc-parser`, so fragments, spreads, and SVG namespaces all work as expected.
|
|
12
12
|
- **DOM + React runtimes** – choose `jsx` for DOM nodes or `reactJsx` for React elements, and mix them freely (even on the server).
|
|
13
|
-
- **Loader + SSR support** – ship tagged templates through Webpack/Rspack, Next.js, or plain Node by using the loader and the `@knighted/jsx/node` entry.
|
|
13
|
+
- **Loader + SSR support** – ship tagged templates through Webpack/Rspack, Next.js, or plain Node by using the loader and the `@knighted/jsx/node` entry (loader builds remove the WASM requirement at runtime).
|
|
14
14
|
|
|
15
15
|
## Quick links
|
|
16
16
|
|
|
@@ -145,7 +145,7 @@ document.body.append(view)
|
|
|
145
145
|
|
|
146
146
|
## Loader integration
|
|
147
147
|
|
|
148
|
-
Use the published loader entry (`@knighted/jsx/loader`) when you want your bundler to rewrite tagged template literals at build time. The loader finds every ` jsx`` ` (and, by default, ` reactJsx`` ` ) invocation, rebuilds the template with real JSX semantics, and hands back transformed source that can run in any environment.
|
|
148
|
+
Use the published loader entry (`@knighted/jsx/loader`) when you want your bundler to rewrite tagged template literals at build time. The loader finds every ` jsx`` ` (and, by default, ` reactJsx`` ` ) invocation, rebuilds the template with real JSX semantics, and hands back transformed source that can run in any environment without loading the WASM parser at runtime.
|
|
149
149
|
|
|
150
150
|
```js
|
|
151
151
|
// rspack.config.js / webpack.config.js
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knighted/jsx",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "Runtime JSX tagged template that renders DOM or React trees anywhere without a build step.",
|
|
3
|
+
"version": "1.7.3",
|
|
4
|
+
"description": "Runtime JSX tagged template that renders DOM or React trees anywhere with or without a build step.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jsx runtime",
|
|
7
7
|
"tagged template",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"magic-string": "^0.30.21",
|
|
181
181
|
"oxc-parser": "^0.105.0",
|
|
182
182
|
"property-information": "^7.1.0",
|
|
183
|
-
"tar": "^7.
|
|
183
|
+
"tar": "^7.5.3"
|
|
184
184
|
},
|
|
185
185
|
"peerDependencies": {
|
|
186
186
|
"jsdom": "*",
|