@lynx-js/react 0.129.0 → 0.129.1
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/CHANGELOG.md +14 -0
- package/components/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -4
- package/refresh/.turbo/turbo-build.log +1 -1
- package/runtime/__test__/core/hooks/useLynxGlobalEventListener.test.jsx +1 -1
- package/runtime/__test__/element-template/imports/no-legacy-imports.test.ts +7 -6
- package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +1 -2
- package/runtime/__test__/element-template/native/main-thread-api.test.ts +5 -2
- package/runtime/__test__/element-template/native/mts-destroy.test.ts +83 -0
- package/runtime/__test__/element-template/native/reload-dual-thread-communication.test.ts +3 -0
- package/runtime/__test__/element-template/native/reload.test.ts +31 -2
- package/runtime/__test__/element-template/runtime/background/update-timing.test.ts +15 -0
- package/runtime/__test__/element-template/runtime/patch/element-template-patch.test.tsx +197 -7
- package/runtime/__test__/element-template/runtime/patch/update-timing.test.ts +4 -1
- package/runtime/__test__/element-template/runtime/render/render-direct-suspense.test.ts +4 -1
- package/runtime/__test__/element-template/runtime/render/render-direct.test.ts +4 -1
- package/runtime/__test__/element-template/runtime/render/render-main-thread.test.ts +101 -1
- package/runtime/__test__/element-template/runtime/template/element-template-handle.test.ts +32 -0
- package/runtime/__test__/element-template/runtime/template/main-thread-dynamic-attr-state.test.ts +121 -26
- package/runtime/__test__/element-template/test-utils/debug/envManager.ts +8 -5
- package/runtime/__test__/element-template/test-utils/mock/mockNativePapi.ts +35 -2
- package/runtime/__test__/guardrails/snapshot-containment.test.ts +45 -11
- package/runtime/__test__/shared/component-stack.test.ts +211 -0
- package/runtime/__test__/snapshot/debug/formatPatch.test.ts +0 -8
- package/runtime/__test__/snapshot/gesture/prepareGestureForCommit.test.js +1 -1
- package/runtime/__test__/snapshot/lynx/timing.test.jsx +3 -0
- package/runtime/__test__/snapshot/preact.test.jsx +0 -3
- package/runtime/__test__/snapshot/snapshotPatch.test.jsx +0 -33
- package/runtime/__test__/worklet-runtime/jsFunctionLifecycle.test.js +12 -0
- package/runtime/__test__/worklet-runtime/loadRuntime.test.js +68 -0
- package/runtime/__test__/worklet-runtime/workletRuntime.test.js +30 -0
- package/runtime/lazy/element-template-internal.js +0 -1
- package/runtime/lazy/internal.js +1 -1
- package/runtime/lazy/jsx-dev-runtime.js +1 -1
- package/runtime/lazy/jsx-runtime.js +1 -1
- package/runtime/lazy/legacy-react-runtime.js +1 -1
- package/runtime/lazy/react-lepus.js +1 -1
- package/runtime/lazy/react.js +1 -1
- package/runtime/lib/core/capture-main-thread-object.js +2 -1
- package/runtime/lib/core/capture-main-thread-object.js.map +1 -1
- package/runtime/lib/core/compat/legacy-react-runtime.js +1 -1
- package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -1
- package/runtime/lib/core/lynx/lazy-bundle.js +1 -1
- package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -1
- package/runtime/lib/core/lynx-data-processors.d.ts +125 -1
- package/runtime/lib/core/lynx-data-processors.js +3 -0
- package/runtime/lib/core/lynx-data-processors.js.map +1 -1
- package/runtime/lib/core/runtime-destroy.js +1 -1
- package/runtime/lib/core/runtime-destroy.js.map +1 -1
- package/runtime/lib/document.js +0 -5
- package/runtime/lib/document.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.js +11 -12
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/client/root.d.ts +1 -1
- package/runtime/lib/element-template/client/root.js.map +1 -1
- package/runtime/lib/element-template/index.d.ts +2 -2
- package/runtime/lib/element-template/index.js.map +1 -1
- package/runtime/lib/element-template/internal.d.ts +1 -1
- package/runtime/lib/element-template/internal.js +0 -13
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/lynx/env.js.map +1 -1
- package/runtime/lib/element-template/native/flush.d.ts +1 -0
- package/runtime/lib/element-template/native/flush.js +9 -0
- package/runtime/lib/element-template/native/flush.js.map +1 -0
- package/runtime/lib/element-template/native/main-thread-api.js +3 -7
- package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
- package/runtime/lib/element-template/native/mts-destroy.js +8 -2
- package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
- package/runtime/lib/element-template/native/patch-listener.js +57 -50
- package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
- package/runtime/lib/element-template/native/reload-main-thread.js +2 -1
- package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
- package/runtime/lib/element-template/protocol/types.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/root-instance.d.ts +0 -1
- package/runtime/lib/element-template/runtime/page/root-instance.js.map +1 -1
- package/runtime/lib/element-template/runtime/patch.js +4 -0
- package/runtime/lib/element-template/runtime/patch.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-components.js +4 -4
- package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-main-thread.js +2 -0
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +8 -1
- package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.d.ts +1 -0
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +41 -21
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.d.ts +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
- package/runtime/lib/internal.d.ts +1 -1
- package/runtime/lib/internal.js +1 -1
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.d.ts +2 -125
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/shared/component-stack.d.ts +0 -4
- package/runtime/lib/shared/component-stack.js +21 -5
- package/runtime/lib/shared/component-stack.js.map +1 -1
- package/runtime/lib/snapshot/gesture/{processGestureBagkround.js → processGestureBackground.js} +1 -1
- package/runtime/lib/snapshot/gesture/processGestureBackground.js.map +1 -0
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.d.ts +0 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js +0 -5
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +0 -10
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +56 -51
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/snapshot/list/listUpdateInfo.js +0 -30
- package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
- package/runtime/lib/snapshot/lynx/calledByNative.js +11 -8
- package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/hydrate.js +0 -52
- package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/index.js +10 -10
- package/runtime/lib/snapshot/renderToOpcodes/index.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js +0 -51
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js +1 -1
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/runtime/lib/worklet-runtime/bindings/index.d.ts +1 -0
- package/runtime/lib/worklet-runtime/bindings/index.js +1 -0
- package/runtime/lib/worklet-runtime/bindings/index.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.d.ts +8 -0
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.js +23 -0
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.js.map +1 -0
- package/runtime/lib/worklet-runtime/jsFunctionLifecycle.d.ts +2 -0
- package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js +6 -0
- package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js +2 -0
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/package.json +2 -3
- package/runtime/src/core/capture-main-thread-object.ts +2 -1
- package/runtime/src/core/compat/legacy-react-runtime.ts +1 -1
- package/runtime/src/core/lynx/lazy-bundle.ts +1 -1
- package/runtime/src/core/lynx-data-processors.ts +124 -1
- package/runtime/src/core/runtime-destroy.ts +1 -1
- package/runtime/src/document.ts +0 -6
- package/runtime/src/element-template/background/commit-hook.ts +18 -12
- package/runtime/src/element-template/client/root.ts +1 -3
- package/runtime/src/element-template/index.ts +2 -2
- package/runtime/src/element-template/internal.ts +0 -20
- package/runtime/src/element-template/lynx/env.ts +1 -1
- package/runtime/src/element-template/native/flush.ts +10 -0
- package/runtime/src/element-template/native/main-thread-api.ts +3 -6
- package/runtime/src/element-template/native/mts-destroy.ts +7 -2
- package/runtime/src/element-template/native/patch-listener.ts +62 -57
- package/runtime/src/element-template/native/reload-main-thread.ts +2 -1
- package/runtime/src/element-template/protocol/types.ts +0 -13
- package/runtime/src/element-template/runtime/page/root-instance.ts +0 -1
- package/runtime/src/element-template/runtime/patch.ts +5 -0
- package/runtime/src/element-template/runtime/render/render-components.ts +3 -3
- package/runtime/src/element-template/runtime/render/render-main-thread.ts +2 -0
- package/runtime/src/element-template/runtime/template/main-thread-background-function.ts +8 -1
- package/runtime/src/element-template/runtime/template/main-thread-dynamic-attr-state.ts +51 -21
- package/runtime/src/element-template/runtime/template/main-thread-ref-ctx.ts +2 -2
- package/runtime/src/element-template/types.d.ts +6 -0
- package/runtime/src/internal.ts +1 -1
- package/runtime/src/lynx-api.ts +2 -124
- package/runtime/src/shared/component-stack.ts +22 -5
- package/runtime/src/snapshot/lifecycle/patch/snapshotPatch.ts +0 -5
- package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +0 -10
- package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +62 -58
- package/runtime/src/snapshot/list/listUpdateInfo.ts +0 -52
- package/runtime/src/snapshot/lynx/calledByNative.ts +11 -9
- package/runtime/src/snapshot/renderToOpcodes/hydrate.ts +0 -58
- package/runtime/src/snapshot/renderToOpcodes/index.ts +8 -8
- package/runtime/src/snapshot/renderToOpcodes/opcodes.ts +0 -57
- package/runtime/src/snapshot/snapshot/backgroundSnapshot.ts +1 -1
- package/runtime/src/worklet-runtime/README.md +30 -10
- package/runtime/src/worklet-runtime/bindings/index.ts +2 -0
- package/runtime/src/worklet-runtime/bindings/loadRuntime.ts +25 -0
- package/runtime/src/worklet-runtime/jsFunctionLifecycle.ts +6 -0
- package/runtime/src/worklet-runtime/workletRuntime.ts +2 -0
- package/runtime/vitest.config.ts +0 -2
- package/testing-library/.turbo/turbo-build.log +6 -6
- package/testing-library/src/__tests__/act.test.jsx +0 -7
- package/testing-library/src/__tests__/alog.test.jsx +12 -54
- package/testing-library/src/__tests__/end-to-end.test.jsx +0 -7
- package/testing-library/src/__tests__/renderComponent.test.jsx +0 -14
- package/testing-library/src/__tests__/worklet.test.jsx +49 -0
- package/transform/.turbo/turbo-build$colon$wasm.log +98 -376
- package/transform/__test__/defines.spec.js +30 -0
- package/transform/__test__/object-methods.spec.js +79 -0
- package/transform/crates/swc_plugin_worklet/extract_ident.rs +99 -49
- package/transform/crates/swc_plugin_worklet/gen_stmt.rs +56 -48
- package/transform/crates/swc_plugin_worklet/lib.rs +393 -589
- package/transform/crates/swc_plugin_worklet/napi.rs +4 -6
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +6 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +7 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +9 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +12 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +1 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +1 -1
- package/transform/dist/wasm.cjs +1 -1
- package/transform/package.json +0 -1
- package/transform/src/lib.rs +1 -1
- package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +113 -42
- package/transform/swc-plugin-reactlynx/src/lib.rs +1 -4
- package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +273 -66
- package/runtime/lib/snapshot/gesture/processGestureBagkround.js.map +0 -1
- package/runtime/lib/snapshot/worklet/hmr.d.ts +0 -1
- package/runtime/lib/snapshot/worklet/hmr.js +0 -28
- package/runtime/lib/snapshot/worklet/hmr.js.map +0 -1
- package/runtime/src/snapshot/worklet/hmr.ts +0 -34
- /package/runtime/lib/snapshot/gesture/{processGestureBagkround.d.ts → processGestureBackground.d.ts} +0 -0
- /package/runtime/src/snapshot/gesture/{processGestureBagkround.ts → processGestureBackground.ts} +0 -0
package/transform/package.json
CHANGED
package/transform/src/lib.rs
CHANGED
|
@@ -893,7 +893,7 @@ fn transform_react_lynx_inner(
|
|
|
893
893
|
}
|
|
894
894
|
Either::B(config) => {
|
|
895
895
|
let visitor =
|
|
896
|
-
WorkletVisitor::new(
|
|
896
|
+
WorkletVisitor::new(config)
|
|
897
897
|
.with_content_hash(content_hash);
|
|
898
898
|
let visitor =
|
|
899
899
|
visitor
|
|
@@ -3,44 +3,111 @@ $ node ./build.js
|
|
|
3
3
|
Blocking waiting for file lock on package cache
|
|
4
4
|
Blocking waiting for file lock on package cache
|
|
5
5
|
Downloading crates ...
|
|
6
|
-
Downloaded
|
|
7
|
-
Downloaded
|
|
8
|
-
Downloaded
|
|
9
|
-
Downloaded
|
|
6
|
+
Downloaded crossbeam-utils v0.8.22
|
|
7
|
+
Downloaded digest v0.11.3
|
|
8
|
+
Downloaded crypto-common v0.2.2
|
|
9
|
+
Downloaded cpufeatures v0.3.0
|
|
10
|
+
Downloaded fixedbitset v0.5.7
|
|
11
|
+
Downloaded foldhash v0.1.5
|
|
12
|
+
Downloaded globset v0.4.19
|
|
13
|
+
Downloaded pathdiff v0.2.3
|
|
14
|
+
Downloaded arrayvec v0.7.8
|
|
15
|
+
Downloaded block-buffer v0.12.1
|
|
16
|
+
Downloaded browserslist-rs v0.20.0
|
|
17
|
+
Downloaded dashmap v6.2.1
|
|
18
|
+
Downloaded foldhash v0.2.0
|
|
19
|
+
Downloaded hybrid-array v0.4.13
|
|
20
|
+
Downloaded iana-time-zone v0.1.65
|
|
21
|
+
Downloaded lru v0.18.4
|
|
22
|
+
Downloaded path-clean v1.0.1
|
|
23
|
+
Downloaded const-oid v0.10.2
|
|
24
|
+
Downloaded getrandom v0.3.4
|
|
25
|
+
Downloaded jsonc-parser v0.26.3
|
|
26
|
+
Downloaded precomputed-map v0.2.0
|
|
27
|
+
Downloaded preset_env_base v9.0.0
|
|
28
|
+
Downloaded itertools v0.15.0
|
|
29
|
+
Downloaded hashbrown v0.16.1
|
|
30
|
+
Downloaded nom v8.0.0
|
|
31
|
+
Downloaded par-iter v2.0.0
|
|
32
|
+
Downloaded chrono v0.4.45
|
|
33
|
+
Downloaded bstr v1.13.0
|
|
34
|
+
Downloaded radix_fmt v1.0.0
|
|
35
|
+
Downloaded browserslist-data v0.2.0
|
|
36
|
+
Downloaded petgraph v0.7.1
|
|
37
|
+
Downloaded regress v0.11.1
|
|
38
|
+
Downloaded swc_config v6.0.0
|
|
39
|
+
Downloaded swc_config_macro v1.0.1
|
|
40
|
+
Downloaded swc_ecma_compat_common v45.0.0
|
|
41
|
+
Downloaded ryu-js v1.0.3
|
|
42
|
+
Downloaded sha1 v0.10.7
|
|
43
|
+
Downloaded sha2 v0.11.0
|
|
44
|
+
Downloaded st-map v0.2.4
|
|
45
|
+
Downloaded static-map-macro v0.3.4
|
|
46
|
+
Downloaded swc v75.0.1
|
|
47
|
+
Downloaded swc_compiler_base v64.0.0
|
|
48
|
+
Downloaded swc_ecma_compat_bugfixes v56.0.0
|
|
49
|
+
Downloaded swc_ecma_compat_es2015 v55.0.0
|
|
50
|
+
Downloaded swc_ecma_compat_es2016 v50.0.0
|
|
51
|
+
Downloaded swc_ecma_compat_es2017 v50.0.0
|
|
52
|
+
Downloaded swc_ecma_compat_es2018 v51.0.0
|
|
53
|
+
Downloaded swc_ecma_compat_es2020 v53.0.0
|
|
54
|
+
Downloaded swc_ecma_compat_es2021 v50.0.0
|
|
55
|
+
Downloaded swc_ecma_compat_es2022 v53.0.0
|
|
56
|
+
Downloaded swc_ecma_compat_regexp v9.0.0
|
|
57
|
+
Downloaded swc_ecma_ext_transforms v35.0.0
|
|
58
|
+
Downloaded swc_ecma_hooks v1.0.0
|
|
59
|
+
Downloaded swc_ecma_loader v27.0.0
|
|
60
|
+
Downloaded swc_ecma_regexp v0.15.0
|
|
61
|
+
Downloaded swc_ecma_regexp_ast v3.0.0
|
|
62
|
+
Downloaded swc_ecma_regexp_common v0.0.1
|
|
63
|
+
Downloaded swc_ecma_regexp_visit v0.15.0
|
|
64
|
+
Downloaded swc_ecma_transforms v62.0.0
|
|
65
|
+
Downloaded swc_node_comments v27.0.0
|
|
66
|
+
Downloaded swc_ecma_minifier v61.0.4
|
|
67
|
+
Downloaded swc_ecma_preset_env v63.0.0
|
|
68
|
+
Downloaded swc_ecma_transformer v21.0.1
|
|
69
|
+
Downloaded swc_ecma_transforms_macros v1.0.1
|
|
70
|
+
Downloaded swc_ecma_transforms_optimization v52.0.0
|
|
71
|
+
Downloaded swc_ecma_transforms_react v55.0.1
|
|
72
|
+
Downloaded swc_ecma_transforms_typescript v55.0.1
|
|
73
|
+
Downloaded swc_ecma_compat_es2019 v50.0.0
|
|
74
|
+
Downloaded swc_ecma_transforms_proposal v49.0.0
|
|
75
|
+
Downloaded swc_ecma_transforms_classes v49.0.0
|
|
76
|
+
Downloaded swc_ecma_transforms_compat v57.0.1
|
|
10
77
|
Blocking waiting for file lock on package cache
|
|
11
78
|
Blocking waiting for file lock on build directory
|
|
12
79
|
Compiling foldhash v0.2.0
|
|
13
80
|
Compiling zerovec v0.11.6
|
|
14
81
|
Compiling getrandom v0.3.4
|
|
15
82
|
Compiling ahash v0.8.12
|
|
16
|
-
Compiling either v1.17.0
|
|
17
83
|
Compiling hashbrown v0.17.1
|
|
84
|
+
Compiling either v1.17.0
|
|
18
85
|
Compiling swc_visit v2.0.2
|
|
19
86
|
Compiling hashbrown v0.14.5
|
|
20
87
|
Compiling aho-corasick v1.1.4
|
|
21
88
|
Compiling indexmap v2.14.0
|
|
22
|
-
Compiling hstr v4.0.0
|
|
23
89
|
Compiling tinystr v0.8.3
|
|
24
|
-
Compiling icu_locale_core v2.2.0
|
|
25
90
|
Compiling potential_utf v0.1.5
|
|
26
|
-
Compiling serde_json v1.0.151
|
|
27
91
|
Compiling icu_collections v2.2.0
|
|
92
|
+
Compiling icu_locale_core v2.2.0
|
|
93
|
+
Compiling serde_json v1.0.151
|
|
94
|
+
Compiling hstr v4.0.0
|
|
28
95
|
Compiling icu_provider v2.2.0
|
|
29
96
|
Compiling swc_atoms v10.0.0
|
|
30
97
|
Compiling regex-automata v0.4.16
|
|
31
|
-
Compiling icu_properties v2.2.0
|
|
32
98
|
Compiling icu_normalizer v2.2.0
|
|
99
|
+
Compiling icu_properties v2.2.0
|
|
33
100
|
Compiling typenum v1.20.1
|
|
34
101
|
Compiling swc_ecma_regexp_common v0.0.1
|
|
35
102
|
Compiling crossbeam-utils v0.8.22
|
|
36
103
|
Compiling idna_adapter v1.2.2
|
|
37
104
|
Compiling idna v1.1.0
|
|
38
105
|
Compiling dashmap v6.2.1
|
|
39
|
-
Compiling generic-array v0.14.7
|
|
40
106
|
Compiling url v2.5.8
|
|
41
|
-
Compiling
|
|
107
|
+
Compiling generic-array v0.14.7
|
|
42
108
|
Compiling swc_sourcemap v10.0.2
|
|
43
109
|
Compiling regex v1.13.1
|
|
110
|
+
Compiling hashbrown v0.16.1
|
|
44
111
|
Compiling bstr v1.13.0
|
|
45
112
|
Compiling regress v0.11.1
|
|
46
113
|
Compiling swc_common v26.0.0
|
|
@@ -48,93 +115,97 @@ $ node ./build.js
|
|
|
48
115
|
Compiling swc_ecma_regexp_ast v3.0.0
|
|
49
116
|
Compiling swc_ecma_regexp_visit v0.15.0
|
|
50
117
|
Compiling globset v0.4.19
|
|
118
|
+
Compiling block-buffer v0.10.4
|
|
51
119
|
Compiling swc_ecma_compat_regexp v9.0.0
|
|
52
120
|
Compiling swc_ecma_regexp v0.15.0
|
|
53
|
-
Compiling block-buffer v0.10.4
|
|
54
121
|
Compiling crypto-common v0.1.7
|
|
122
|
+
Compiling swc_config_macro v1.0.1
|
|
55
123
|
Compiling swc_config v6.0.0
|
|
56
124
|
Compiling digest v0.10.7
|
|
57
125
|
Compiling arrayvec v0.7.8
|
|
126
|
+
Compiling swc_ecma_transforms_macros v1.0.1
|
|
58
127
|
Compiling fixedbitset v0.5.7
|
|
128
|
+
Compiling petgraph v0.7.1
|
|
129
|
+
Compiling zmij v1.0.23
|
|
59
130
|
Compiling swc_allocator v5.0.0
|
|
60
131
|
Compiling sha1 v0.10.7
|
|
61
|
-
Compiling petgraph v0.7.1
|
|
62
132
|
Compiling chrono v0.4.45
|
|
133
|
+
Compiling browserslist-data v0.2.0
|
|
63
134
|
Compiling swc_error_reporters v28.0.0
|
|
64
135
|
Compiling matchers v0.2.0
|
|
65
|
-
Compiling browserslist-data v0.2.0
|
|
66
136
|
Compiling itertools v0.15.0
|
|
67
137
|
Compiling nom v8.0.0
|
|
138
|
+
Compiling static-map-macro v0.3.4
|
|
139
|
+
Compiling foldhash v0.1.5
|
|
140
|
+
Compiling precomputed-map v0.2.0
|
|
68
141
|
Compiling tracing-subscriber v0.3.23
|
|
69
|
-
Compiling st-map v0.2.4
|
|
70
|
-
Compiling cargo_metadata v0.18.1
|
|
71
142
|
Compiling swc_ecma_visit v29.0.0
|
|
72
143
|
Compiling swc_ecma_parser v45.1.1
|
|
73
144
|
Compiling browserslist-rs v0.20.0
|
|
145
|
+
Compiling swc_ecma_preset_env v63.0.0
|
|
146
|
+
Compiling st-map v0.2.4
|
|
147
|
+
Compiling cargo_metadata v0.18.1
|
|
74
148
|
Compiling par-iter v2.0.0
|
|
75
149
|
Compiling ryu-js v1.0.3
|
|
76
150
|
Compiling radix_fmt v1.0.0
|
|
77
151
|
Compiling pathdiff v0.2.3
|
|
78
152
|
Compiling testing v27.0.0
|
|
79
153
|
Compiling preset_env_base v9.0.0
|
|
80
|
-
Compiling swc_ecma_preset_env v63.0.0
|
|
81
154
|
Compiling sha2 v0.10.9
|
|
82
155
|
Compiling lru v0.18.4
|
|
83
156
|
Compiling path-clean v1.0.1
|
|
84
|
-
Compiling foldhash v0.1.5
|
|
85
|
-
Compiling precomputed-map v0.2.0
|
|
86
157
|
Compiling swc_ecma_loader v27.0.0
|
|
87
158
|
Compiling swc_ecma_testing v27.0.0
|
|
88
|
-
Compiling swc_transform_common v20.0.0
|
|
89
|
-
Compiling swc_node_comments v27.0.0
|
|
90
|
-
Compiling jsonc-parser v0.26.3
|
|
91
|
-
Compiling swc_core v77.1.2
|
|
92
|
-
Compiling swc_plugin_proxy v30.0.0
|
|
93
|
-
Compiling sha-1 v0.10.1
|
|
94
|
-
Compiling hybrid-array v0.4.13
|
|
95
|
-
Compiling crypto-common v0.2.2
|
|
96
|
-
Compiling block-buffer v0.12.1
|
|
97
|
-
Compiling const-oid v0.10.2
|
|
98
159
|
Compiling swc_ecma_utils v35.0.0
|
|
99
160
|
Compiling swc_ecma_hooks v1.0.0
|
|
100
|
-
Compiling digest v0.11.3
|
|
101
|
-
Compiling sha2 v0.11.0
|
|
102
161
|
Compiling swc_ecma_transforms_base v49.0.1
|
|
103
162
|
Compiling swc_ecma_codegen v32.0.0
|
|
104
|
-
Compiling swc_ecma_ext_transforms v35.0.0
|
|
105
163
|
Compiling swc_ecma_transformer v21.0.1
|
|
106
164
|
Compiling swc_ecma_transforms_classes v49.0.0
|
|
107
165
|
Compiling swc_ecma_compat_common v45.0.0
|
|
108
166
|
Compiling swc_ecma_compat_es2015 v55.0.0
|
|
109
167
|
Compiling swc_ecma_compat_es2022 v53.0.0
|
|
110
168
|
Compiling swc_ecma_transforms_optimization v52.0.0
|
|
169
|
+
Compiling swc_ecma_compat_bugfixes v56.0.0
|
|
111
170
|
Compiling swc_ecma_compat_es2020 v53.0.0
|
|
112
|
-
Compiling swc_ecma_compat_es2016 v50.0.0
|
|
113
|
-
Compiling swc_ecma_compat_es2018 v51.0.0
|
|
114
171
|
Compiling swc_ecma_compat_es2019 v50.0.0
|
|
115
172
|
Compiling swc_ecma_compat_es2021 v50.0.0
|
|
116
|
-
Compiling
|
|
173
|
+
Compiling swc_ecma_compat_es2016 v50.0.0
|
|
117
174
|
Compiling swc_ecma_compat_es2017 v50.0.0
|
|
175
|
+
Compiling swc_ecma_compat_es2018 v51.0.0
|
|
118
176
|
Compiling swc_ecma_transforms_react v55.0.1
|
|
119
177
|
Compiling swc_ecma_transforms_compat v57.0.1
|
|
120
178
|
Compiling swc_ecma_transforms_typescript v55.0.1
|
|
121
179
|
Compiling swc_ecma_transforms_proposal v49.0.0
|
|
122
180
|
Compiling swc_ecma_transforms v62.0.0
|
|
123
181
|
Compiling swc_ecma_minifier v61.0.4
|
|
182
|
+
Compiling swc_ecma_ext_transforms v35.0.0
|
|
183
|
+
Compiling swc_node_comments v27.0.0
|
|
184
|
+
Compiling swc_transform_common v20.0.0
|
|
185
|
+
Compiling jsonc-parser v0.26.3
|
|
186
|
+
Compiling swc_core v77.1.2
|
|
124
187
|
Compiling swc_ecma_transforms_testing v53.0.0
|
|
125
|
-
Compiling swc_plugin_define_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_define_dce)
|
|
126
188
|
Compiling swc_compiler_base v64.0.0
|
|
127
189
|
Compiling swc v75.0.1
|
|
190
|
+
Compiling swc_plugin_proxy v30.0.0
|
|
191
|
+
Compiling sha-1 v0.10.1
|
|
192
|
+
Compiling hybrid-array v0.4.13
|
|
193
|
+
Compiling block-buffer v0.12.1
|
|
194
|
+
Compiling crypto-common v0.2.2
|
|
128
195
|
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
129
|
-
Compiling
|
|
130
|
-
Compiling
|
|
131
|
-
Compiling
|
|
132
|
-
Compiling
|
|
133
|
-
Compiling swc_plugin_element_template v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_element_template)
|
|
196
|
+
Compiling const-oid v0.10.2
|
|
197
|
+
Compiling digest v0.11.3
|
|
198
|
+
Compiling sha2 v0.11.0
|
|
199
|
+
Compiling swc_plugin_define_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_define_dce)
|
|
134
200
|
Compiling swc_plugin_directive_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_directive_dce)
|
|
201
|
+
Compiling swc_plugin_element_template v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_element_template)
|
|
202
|
+
Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
|
|
135
203
|
Compiling swc_plugin_dynamic_import v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_dynamic_import)
|
|
136
204
|
Compiling swc_plugin_text v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_text)
|
|
205
|
+
Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
|
|
137
206
|
Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
|
|
207
|
+
Compiling swc_plugin_list v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_list)
|
|
208
|
+
Compiling swc_plugin_css_scope v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_css_scope)
|
|
138
209
|
Compiling swc_plugin_snapshot v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_snapshot)
|
|
139
210
|
Compiling swc_plugin_reactlynx v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx)
|
|
140
|
-
Finished `release` profile [optimized] target(s) in
|
|
211
|
+
Finished `release` profile [optimized] target(s) in 4m 16s
|
|
@@ -303,10 +303,7 @@ pub fn process_transform(program: Program, metadata: TransformPluginProgramMetad
|
|
|
303
303
|
config,
|
|
304
304
|
),
|
|
305
305
|
Either::B(config) => Optional::new(
|
|
306
|
-
visit_mut_pass(
|
|
307
|
-
WorkletVisitor::new(options.mode.unwrap_or(TransformMode::Production), config)
|
|
308
|
-
.with_content_hash(content_hash),
|
|
309
|
-
),
|
|
306
|
+
visit_mut_pass(WorkletVisitor::new(config).with_content_hash(content_hash)),
|
|
310
307
|
true,
|
|
311
308
|
),
|
|
312
309
|
};
|
|
Binary file
|