@gjsify/lightningcss-wasm 0.26.1 → 0.27.0
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/package.json +4 -4
- package/src/composeVisitors.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/lightningcss-wasm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Phase D-2 POC: GJS-compatible loader for the lightningcss WASM bundle. Re-exports the `lightningcss-wasm` npm package's transform/bundle/bundleAsync API on top of SpiderMonkey 140's synchronous `new WebAssembly.Module/Instance` constructors. Reads the .wasm via @gjsify/fs (or Node's native fs), resolves randomness via globalThis.crypto. No WASI, no SharedArrayBuffer — single-shot CSS pipeline. Intended as the WASM-track counterpart to `@gjsify/lightningcss-native`; the better of the two wins the slot in `@gjsify/rolldown-plugin-gjsify`'s cssAsStringPlugin (see Phase D-2 decision matrix).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"wasm"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"clear": "
|
|
19
|
+
"clear": "gjsify clear lib tsconfig.tsbuildinfo",
|
|
20
20
|
"check": "echo 'no typecheck — vendored JS only' && exit 0"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"napi-wasm"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@gjsify/fs": "^0.
|
|
33
|
-
"@gjsify/webcrypto": "^0.
|
|
32
|
+
"@gjsify/fs": "^0.27.0",
|
|
33
|
+
"@gjsify/webcrypto": "^0.27.0"
|
|
34
34
|
},
|
|
35
35
|
"author": "Pascal Garber <pascal@artandcode.studio>",
|
|
36
36
|
"license": "MIT",
|
package/src/composeVisitors.js
CHANGED
|
@@ -374,7 +374,7 @@ function createArrayVisitor(visitors, apply) {
|
|
|
374
374
|
// For each value, call all visitors. If a visitor returns a new value,
|
|
375
375
|
// we start over, but skip the visitor that generated the value or saw
|
|
376
376
|
// it before (to avoid cycles). This way, visitors can be composed in any order.
|
|
377
|
-
for (let v = 0; v < visitors.length && i < arr.length;
|
|
377
|
+
for (let v = 0; v < visitors.length && i < arr.length;) {
|
|
378
378
|
if (seen.get(v)) {
|
|
379
379
|
v++;
|
|
380
380
|
continue;
|