@rsvelte/compiler 0.10.11 → 0.10.12
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 +9 -4
- package/package.json +1 -1
- package/rsvelte_lint_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -10,9 +10,10 @@ The whole compile pipeline — parse, analyze, transform — for client, SSR and
|
|
|
10
10
|
hydration, with output that matches the official compiler across the in-scope
|
|
11
11
|
test suite.
|
|
12
12
|
|
|
13
|
-
> **⚠️ Early stage.**
|
|
14
|
-
>
|
|
15
|
-
>
|
|
13
|
+
> **⚠️ Early stage.** This package exposes a browser-oriented low-level WASM
|
|
14
|
+
> API, not the public `svelte/compiler` API. Output is verified byte-for-byte
|
|
15
|
+
> against the official compiler across the in-scope Svelte test suite, but treat
|
|
16
|
+
> this package as experimental for production use.
|
|
16
17
|
|
|
17
18
|
## Install
|
|
18
19
|
|
|
@@ -44,7 +45,7 @@ initSync({ module: bytes });
|
|
|
44
45
|
stable across releases; the on-disk filename is an internal build detail and may
|
|
45
46
|
change.
|
|
46
47
|
|
|
47
|
-
##
|
|
48
|
+
## WASM API
|
|
48
49
|
|
|
49
50
|
```js
|
|
50
51
|
import init, {
|
|
@@ -96,6 +97,10 @@ const result = JSON.parse(
|
|
|
96
97
|
console.log(result.js.code, result.warnings);
|
|
97
98
|
```
|
|
98
99
|
|
|
100
|
+
The exported names and JSON-string return values below are specific to this
|
|
101
|
+
WASM package. They are deliberately not presented as `svelte/compiler`
|
|
102
|
+
equivalents.
|
|
103
|
+
|
|
99
104
|
## Why it is fast
|
|
100
105
|
|
|
101
106
|
- Written in Rust with a memory-efficient AST (`u32` spans, compact strings) and
|
package/package.json
CHANGED
package/rsvelte_lint_bg.wasm
CHANGED
|
Binary file
|