@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
|
@@ -26,7 +26,6 @@ use worklet_type::WorkletType;
|
|
|
26
26
|
use swc_plugins_shared::{
|
|
27
27
|
defines::{collect_define, collect_unmergeable_define, DefineKind, DefinesCollector},
|
|
28
28
|
target::TransformTarget,
|
|
29
|
-
transform_mode::TransformMode,
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
#[cfg(feature = "napi")]
|
|
@@ -61,7 +60,6 @@ impl Default for WorkletVisitorConfig {
|
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
pub struct WorkletVisitor {
|
|
64
|
-
mode: TransformMode,
|
|
65
63
|
content_hash: String,
|
|
66
64
|
cfg: WorkletVisitorConfig,
|
|
67
65
|
stmts_to_insert_at_top_level: Vec<Stmt>,
|
|
@@ -77,7 +75,7 @@ pub struct WorkletVisitor {
|
|
|
77
75
|
|
|
78
76
|
impl Default for WorkletVisitor {
|
|
79
77
|
fn default() -> Self {
|
|
80
|
-
WorkletVisitor::new(
|
|
78
|
+
WorkletVisitor::new(WorkletVisitorConfig::default())
|
|
81
79
|
}
|
|
82
80
|
}
|
|
83
81
|
|
|
@@ -116,7 +114,6 @@ impl VisitMut for WorkletVisitor {
|
|
|
116
114
|
let collect_main_thread = self.defines_collector.is_some();
|
|
117
115
|
let collected_hash = collect_main_thread.then(|| hash.clone());
|
|
118
116
|
let (worklet_object_expr, register_worklet_stmt, main_thread_stmt) = StmtGen::transform_worklet(
|
|
119
|
-
self.mode,
|
|
120
117
|
worklet_type,
|
|
121
118
|
hash,
|
|
122
119
|
self.cfg.target,
|
|
@@ -212,7 +209,6 @@ impl VisitMut for WorkletVisitor {
|
|
|
212
209
|
let original_function = m.function.clone();
|
|
213
210
|
let (worklet_object_expr, register_worklet_stmt, main_thread_stmt) =
|
|
214
211
|
StmtGen::transform_worklet(
|
|
215
|
-
self.mode,
|
|
216
212
|
worklet_type.unwrap(),
|
|
217
213
|
hash,
|
|
218
214
|
self.cfg.target,
|
|
@@ -348,7 +344,6 @@ impl VisitMut for WorkletVisitor {
|
|
|
348
344
|
let collected_hash = collect_main_thread.then(|| hash.clone());
|
|
349
345
|
let (worklet_object_expr, register_worklet_stmt, main_thread_stmt) =
|
|
350
346
|
StmtGen::transform_worklet(
|
|
351
|
-
self.mode,
|
|
352
347
|
worklet_type.unwrap(),
|
|
353
348
|
hash,
|
|
354
349
|
self.cfg.target,
|
|
@@ -442,7 +437,6 @@ impl VisitMut for WorkletVisitor {
|
|
|
442
437
|
let collect_main_thread = self.defines_collector.is_some();
|
|
443
438
|
let collected_hash = collect_main_thread.then(|| hash.clone());
|
|
444
439
|
let (worklet_object_expr, register_worklet_stmt, main_thread_stmt) = StmtGen::transform_worklet(
|
|
445
|
-
self.mode,
|
|
446
440
|
worklet_type.unwrap(),
|
|
447
441
|
hash,
|
|
448
442
|
self.cfg.target,
|
|
@@ -505,7 +499,6 @@ impl VisitMut for WorkletVisitor {
|
|
|
505
499
|
let collected_hash = collect_main_thread.then(|| hash.clone());
|
|
506
500
|
let (worklet_object_expr, register_worklet_stmt, main_thread_stmt) =
|
|
507
501
|
StmtGen::transform_worklet(
|
|
508
|
-
self.mode,
|
|
509
502
|
worklet_type.unwrap(),
|
|
510
503
|
hash,
|
|
511
504
|
self.cfg.target,
|
|
@@ -572,7 +565,6 @@ impl VisitMut for WorkletVisitor {
|
|
|
572
565
|
let collected_hash = collect_main_thread.then(|| hash.clone());
|
|
573
566
|
let (worklet_object_expr, register_worklet_stmt, main_thread_stmt) =
|
|
574
567
|
StmtGen::transform_worklet(
|
|
575
|
-
self.mode,
|
|
576
568
|
worklet_type.unwrap(),
|
|
577
569
|
hash,
|
|
578
570
|
self.cfg.target,
|
|
@@ -654,7 +646,6 @@ impl VisitMut for WorkletVisitor {
|
|
|
654
646
|
let collect_main_thread = self.defines_collector.is_some();
|
|
655
647
|
let collected_hash = collect_main_thread.then(|| hash.clone());
|
|
656
648
|
let (worklet_object_expr, register_worklet_stmt, main_thread_stmt) = StmtGen::transform_worklet(
|
|
657
|
-
self.mode,
|
|
658
649
|
worklet_type.unwrap(),
|
|
659
650
|
hash,
|
|
660
651
|
self.cfg.target,
|
|
@@ -947,9 +938,8 @@ impl WorkletVisitor {
|
|
|
947
938
|
self
|
|
948
939
|
}
|
|
949
940
|
|
|
950
|
-
pub fn new(
|
|
941
|
+
pub fn new(cfg: WorkletVisitorConfig) -> Self {
|
|
951
942
|
WorkletVisitor {
|
|
952
|
-
mode,
|
|
953
943
|
content_hash: "test".into(),
|
|
954
944
|
cfg,
|
|
955
945
|
stmts_to_insert_at_top_level: vec![],
|
|
@@ -1037,7 +1027,7 @@ impl WorkletVisitor {
|
|
|
1037
1027
|
|
|
1038
1028
|
#[cfg(test)]
|
|
1039
1029
|
mod tests {
|
|
1040
|
-
use crate::{
|
|
1030
|
+
use crate::{TransformTarget, WorkletVisitor, WorkletVisitorConfig};
|
|
1041
1031
|
use swc_core::common::Mark;
|
|
1042
1032
|
use swc_core::ecma::parser::TsSyntax;
|
|
1043
1033
|
use swc_core::ecma::transforms::base::hygiene::hygiene;
|
|
@@ -1055,15 +1045,12 @@ mod tests {
|
|
|
1055
1045
|
}),
|
|
1056
1046
|
|_| (
|
|
1057
1047
|
resolver(Mark::new(), Mark::new(), true),
|
|
1058
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1065
|
-
}
|
|
1066
|
-
)),
|
|
1048
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1049
|
+
filename: "index.js".into(),
|
|
1050
|
+
target: TransformTarget::LEPUS,
|
|
1051
|
+
custom_global_ident_names: None,
|
|
1052
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1053
|
+
})),
|
|
1067
1054
|
hygiene()
|
|
1068
1055
|
),
|
|
1069
1056
|
should_transform_lepus_general,
|
|
@@ -1084,15 +1071,12 @@ function worklet(event: Event) {
|
|
|
1084
1071
|
}),
|
|
1085
1072
|
|_| (
|
|
1086
1073
|
resolver(Mark::new(), Mark::new(), true),
|
|
1087
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1094
|
-
}
|
|
1095
|
-
)),
|
|
1074
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1075
|
+
filename: "index.js".into(),
|
|
1076
|
+
target: TransformTarget::LEPUS,
|
|
1077
|
+
custom_global_ident_names: None,
|
|
1078
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1079
|
+
})),
|
|
1096
1080
|
hygiene()
|
|
1097
1081
|
),
|
|
1098
1082
|
should_not_capture_object_method_local_decls_lepus,
|
|
@@ -1115,15 +1099,12 @@ const valueType = defineMainThreadObjectType({
|
|
|
1115
1099
|
}),
|
|
1116
1100
|
|_| (
|
|
1117
1101
|
resolver(Mark::new(), Mark::new(), true),
|
|
1118
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1125
|
-
}
|
|
1126
|
-
)),
|
|
1102
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1103
|
+
filename: "index.js".into(),
|
|
1104
|
+
target: TransformTarget::LEPUS,
|
|
1105
|
+
custom_global_ident_names: None,
|
|
1106
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1107
|
+
})),
|
|
1127
1108
|
hygiene()
|
|
1128
1109
|
),
|
|
1129
1110
|
should_not_capture_computed_object_method_key_lepus,
|
|
@@ -1147,15 +1128,12 @@ const valueType = defineMainThreadObjectType({
|
|
|
1147
1128
|
}),
|
|
1148
1129
|
|_| (
|
|
1149
1130
|
resolver(Mark::new(), Mark::new(), true),
|
|
1150
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1157
|
-
}
|
|
1158
|
-
)),
|
|
1131
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1132
|
+
filename: "index.js".into(),
|
|
1133
|
+
target: TransformTarget::LEPUS,
|
|
1134
|
+
custom_global_ident_names: None,
|
|
1135
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1136
|
+
})),
|
|
1159
1137
|
hygiene()
|
|
1160
1138
|
),
|
|
1161
1139
|
should_expose_object_method_capture_channels_lepus,
|
|
@@ -1185,15 +1163,12 @@ const valueType = defineMainThreadObjectType({
|
|
|
1185
1163
|
}),
|
|
1186
1164
|
|_| (
|
|
1187
1165
|
resolver(Mark::new(), Mark::new(), true),
|
|
1188
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1195
|
-
}
|
|
1196
|
-
)),
|
|
1166
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1167
|
+
filename: "index.js".into(),
|
|
1168
|
+
target: TransformTarget::JS,
|
|
1169
|
+
custom_global_ident_names: None,
|
|
1170
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1171
|
+
})),
|
|
1197
1172
|
hygiene()
|
|
1198
1173
|
),
|
|
1199
1174
|
should_expose_object_method_capture_channels_js,
|
|
@@ -1223,15 +1198,12 @@ const valueType = defineMainThreadObjectType({
|
|
|
1223
1198
|
}),
|
|
1224
1199
|
|_| (
|
|
1225
1200
|
resolver(Mark::new(), Mark::new(), true),
|
|
1226
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1233
|
-
}
|
|
1234
|
-
)),
|
|
1201
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1202
|
+
filename: "index.js".into(),
|
|
1203
|
+
target: TransformTarget::LEPUS,
|
|
1204
|
+
custom_global_ident_names: None,
|
|
1205
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1206
|
+
})),
|
|
1235
1207
|
hygiene()
|
|
1236
1208
|
),
|
|
1237
1209
|
should_transform_lepus_alias,
|
|
@@ -1252,15 +1224,12 @@ function worklet(event: Event) {
|
|
|
1252
1224
|
}),
|
|
1253
1225
|
|_| (
|
|
1254
1226
|
resolver(Mark::new(), Mark::new(), true),
|
|
1255
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1262
|
-
}
|
|
1263
|
-
)),
|
|
1227
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1228
|
+
filename: "index.js".into(),
|
|
1229
|
+
target: TransformTarget::MIXED,
|
|
1230
|
+
custom_global_ident_names: None,
|
|
1231
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1232
|
+
})),
|
|
1264
1233
|
hygiene()
|
|
1265
1234
|
),
|
|
1266
1235
|
should_transform_lepus_general_mixed,
|
|
@@ -1281,15 +1250,12 @@ function worklet(event: Event) {
|
|
|
1281
1250
|
}),
|
|
1282
1251
|
|_| (
|
|
1283
1252
|
resolver(Mark::new(), Mark::new(), true),
|
|
1284
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1291
|
-
}
|
|
1292
|
-
)),
|
|
1253
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1254
|
+
filename: "index.js".into(),
|
|
1255
|
+
target: TransformTarget::JS,
|
|
1256
|
+
custom_global_ident_names: None,
|
|
1257
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1258
|
+
})),
|
|
1293
1259
|
hygiene()
|
|
1294
1260
|
),
|
|
1295
1261
|
should_transform_js_general,
|
|
@@ -1310,15 +1276,12 @@ function worklet(event: Event) {
|
|
|
1310
1276
|
}),
|
|
1311
1277
|
|_| (
|
|
1312
1278
|
resolver(Mark::new(), Mark::new(), true),
|
|
1313
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1320
|
-
}
|
|
1321
|
-
)),
|
|
1279
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1280
|
+
filename: "index.js".into(),
|
|
1281
|
+
target: TransformTarget::LEPUS,
|
|
1282
|
+
custom_global_ident_names: None,
|
|
1283
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1284
|
+
})),
|
|
1322
1285
|
hygiene()
|
|
1323
1286
|
),
|
|
1324
1287
|
should_transform_lepus,
|
|
@@ -1349,15 +1312,12 @@ function X(event) {
|
|
|
1349
1312
|
}),
|
|
1350
1313
|
|_| (
|
|
1351
1314
|
resolver(Mark::new(), Mark::new(), true),
|
|
1352
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1359
|
-
}
|
|
1360
|
-
)),
|
|
1315
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1316
|
+
filename: "index.ts".into(),
|
|
1317
|
+
target: TransformTarget::JS,
|
|
1318
|
+
custom_global_ident_names: None,
|
|
1319
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1320
|
+
})),
|
|
1361
1321
|
hygiene()
|
|
1362
1322
|
),
|
|
1363
1323
|
should_preserve_main_thread_objects_in_class_js,
|
|
@@ -1397,15 +1357,12 @@ class App extends Component {
|
|
|
1397
1357
|
}),
|
|
1398
1358
|
|_| (
|
|
1399
1359
|
resolver(Mark::new(), Mark::new(), true),
|
|
1400
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1407
|
-
}
|
|
1408
|
-
)),
|
|
1360
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1361
|
+
filename: "index.ts".into(),
|
|
1362
|
+
target: TransformTarget::LEPUS,
|
|
1363
|
+
custom_global_ident_names: None,
|
|
1364
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1365
|
+
})),
|
|
1409
1366
|
hygiene()
|
|
1410
1367
|
),
|
|
1411
1368
|
should_preserve_main_thread_objects_in_class_lepus,
|
|
@@ -1445,15 +1402,12 @@ class App extends Component {
|
|
|
1445
1402
|
}),
|
|
1446
1403
|
|_| (
|
|
1447
1404
|
resolver(Mark::new(), Mark::new(), true),
|
|
1448
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1455
|
-
}
|
|
1456
|
-
)),
|
|
1405
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1406
|
+
filename: "index.js".into(),
|
|
1407
|
+
target: TransformTarget::JS,
|
|
1408
|
+
custom_global_ident_names: None,
|
|
1409
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1410
|
+
})),
|
|
1457
1411
|
hygiene()
|
|
1458
1412
|
),
|
|
1459
1413
|
should_transform_js,
|
|
@@ -1484,15 +1438,12 @@ function X(event) {
|
|
|
1484
1438
|
}),
|
|
1485
1439
|
|_| (
|
|
1486
1440
|
resolver(Mark::new(), Mark::new(), true),
|
|
1487
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1494
|
-
}
|
|
1495
|
-
)),
|
|
1441
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1442
|
+
filename: "index.js".into(),
|
|
1443
|
+
target: TransformTarget::JS,
|
|
1444
|
+
custom_global_ident_names: None,
|
|
1445
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1446
|
+
})),
|
|
1496
1447
|
hygiene()
|
|
1497
1448
|
),
|
|
1498
1449
|
should_skip_shared_identifiers_js,
|
|
@@ -1518,15 +1469,12 @@ function worklet(event: Event) {
|
|
|
1518
1469
|
}),
|
|
1519
1470
|
|_| (
|
|
1520
1471
|
resolver(Mark::new(), Mark::new(), true),
|
|
1521
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1528
|
-
}
|
|
1529
|
-
)),
|
|
1472
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1473
|
+
filename: "index.js".into(),
|
|
1474
|
+
target: TransformTarget::JS,
|
|
1475
|
+
custom_global_ident_names: None,
|
|
1476
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1477
|
+
})),
|
|
1530
1478
|
hygiene()
|
|
1531
1479
|
),
|
|
1532
1480
|
should_skip_shared_identifiers_default_import_js,
|
|
@@ -1552,15 +1500,12 @@ function worklet(event: Event) {
|
|
|
1552
1500
|
}),
|
|
1553
1501
|
|_| (
|
|
1554
1502
|
resolver(Mark::new(), Mark::new(), true),
|
|
1555
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1562
|
-
}
|
|
1563
|
-
)),
|
|
1503
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1504
|
+
filename: "index.js".into(),
|
|
1505
|
+
target: TransformTarget::JS,
|
|
1506
|
+
custom_global_ident_names: None,
|
|
1507
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1508
|
+
})),
|
|
1564
1509
|
hygiene()
|
|
1565
1510
|
),
|
|
1566
1511
|
should_skip_shared_identifiers_namespace_import_js,
|
|
@@ -1586,15 +1531,12 @@ function worklet(event: Event) {
|
|
|
1586
1531
|
}),
|
|
1587
1532
|
|_| (
|
|
1588
1533
|
resolver(Mark::new(), Mark::new(), true),
|
|
1589
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1596
|
-
}
|
|
1597
|
-
)),
|
|
1534
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1535
|
+
filename: "index.js".into(),
|
|
1536
|
+
target: TransformTarget::JS,
|
|
1537
|
+
custom_global_ident_names: None,
|
|
1538
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1539
|
+
})),
|
|
1598
1540
|
hygiene()
|
|
1599
1541
|
),
|
|
1600
1542
|
should_skip_shared_identifiers_string_key_js,
|
|
@@ -1619,15 +1561,12 @@ function worklet(event: Event) {
|
|
|
1619
1561
|
}),
|
|
1620
1562
|
|_| (
|
|
1621
1563
|
resolver(Mark::new(), Mark::new(), true),
|
|
1622
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1629
|
-
}
|
|
1630
|
-
)),
|
|
1564
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1565
|
+
filename: "index.js".into(),
|
|
1566
|
+
target: TransformTarget::JS,
|
|
1567
|
+
custom_global_ident_names: None,
|
|
1568
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1569
|
+
})),
|
|
1631
1570
|
hygiene()
|
|
1632
1571
|
),
|
|
1633
1572
|
should_handle_renamed_import_shadowing_js,
|
|
@@ -1655,15 +1594,12 @@ import { sharedRuntime as sr } from './utils.js' with {
|
|
|
1655
1594
|
}),
|
|
1656
1595
|
|_| (
|
|
1657
1596
|
resolver(Mark::new(), Mark::new(), true),
|
|
1658
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1665
|
-
}
|
|
1666
|
-
)),
|
|
1597
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1598
|
+
filename: "index.js".into(),
|
|
1599
|
+
target: TransformTarget::LEPUS,
|
|
1600
|
+
custom_global_ident_names: None,
|
|
1601
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1602
|
+
})),
|
|
1667
1603
|
hygiene()
|
|
1668
1604
|
),
|
|
1669
1605
|
should_skip_shared_identifiers_lepus,
|
|
@@ -1688,15 +1624,12 @@ function worklet(event: Event) {
|
|
|
1688
1624
|
}),
|
|
1689
1625
|
|_| (
|
|
1690
1626
|
resolver(Mark::new(), Mark::new(), true),
|
|
1691
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1698
|
-
}
|
|
1699
|
-
)),
|
|
1627
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1628
|
+
filename: "index.js".into(),
|
|
1629
|
+
target: TransformTarget::LEPUS,
|
|
1630
|
+
custom_global_ident_names: None,
|
|
1631
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1632
|
+
})),
|
|
1700
1633
|
hygiene()
|
|
1701
1634
|
),
|
|
1702
1635
|
should_transform_multiple_worklets,
|
|
@@ -1719,15 +1652,12 @@ function Y(event) {
|
|
|
1719
1652
|
}),
|
|
1720
1653
|
|_| (
|
|
1721
1654
|
resolver(Mark::new(), Mark::new(), true),
|
|
1722
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1729
|
-
}
|
|
1730
|
-
)),
|
|
1655
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1656
|
+
filename: "index.js".into(),
|
|
1657
|
+
target: TransformTarget::LEPUS,
|
|
1658
|
+
custom_global_ident_names: None,
|
|
1659
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1660
|
+
})),
|
|
1731
1661
|
hygiene()
|
|
1732
1662
|
),
|
|
1733
1663
|
should_transform_multiple_worklets_in_func,
|
|
@@ -1752,15 +1682,12 @@ function App() {
|
|
|
1752
1682
|
}),
|
|
1753
1683
|
|_| (
|
|
1754
1684
|
resolver(Mark::new(), Mark::new(), true),
|
|
1755
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1762
|
-
}
|
|
1763
|
-
)),
|
|
1685
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1686
|
+
filename: "index.js".into(),
|
|
1687
|
+
target: TransformTarget::LEPUS,
|
|
1688
|
+
custom_global_ident_names: None,
|
|
1689
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1690
|
+
})),
|
|
1764
1691
|
hygiene()
|
|
1765
1692
|
),
|
|
1766
1693
|
should_transform_arrow_function,
|
|
@@ -1779,15 +1706,12 @@ let X = (event) => {
|
|
|
1779
1706
|
}),
|
|
1780
1707
|
|_| (
|
|
1781
1708
|
resolver(Mark::new(), Mark::new(), true),
|
|
1782
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1789
|
-
}
|
|
1790
|
-
)),
|
|
1709
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1710
|
+
filename: "index.js".into(),
|
|
1711
|
+
target: TransformTarget::LEPUS,
|
|
1712
|
+
custom_global_ident_names: None,
|
|
1713
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1714
|
+
})),
|
|
1791
1715
|
hygiene()
|
|
1792
1716
|
),
|
|
1793
1717
|
should_transform_function_expr,
|
|
@@ -1806,15 +1730,12 @@ let X = function (event) {
|
|
|
1806
1730
|
}),
|
|
1807
1731
|
|_| (
|
|
1808
1732
|
resolver(Mark::new(), Mark::new(), true),
|
|
1809
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1816
|
-
}
|
|
1817
|
-
)),
|
|
1733
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1734
|
+
filename: "index.js".into(),
|
|
1735
|
+
target: TransformTarget::LEPUS,
|
|
1736
|
+
custom_global_ident_names: None,
|
|
1737
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1738
|
+
})),
|
|
1818
1739
|
hygiene()
|
|
1819
1740
|
),
|
|
1820
1741
|
should_transform_object_methods_lepus,
|
|
@@ -1838,15 +1759,12 @@ const valueType = defineMainThreadObjectType({
|
|
|
1838
1759
|
}),
|
|
1839
1760
|
|_| (
|
|
1840
1761
|
resolver(Mark::new(), Mark::new(), true),
|
|
1841
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1848
|
-
}
|
|
1849
|
-
)),
|
|
1762
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1763
|
+
filename: "index.js".into(),
|
|
1764
|
+
target: TransformTarget::JS,
|
|
1765
|
+
custom_global_ident_names: None,
|
|
1766
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1767
|
+
})),
|
|
1850
1768
|
hygiene()
|
|
1851
1769
|
),
|
|
1852
1770
|
should_transform_object_methods_js,
|
|
@@ -1870,15 +1788,12 @@ const valueType = defineMainThreadObjectType({
|
|
|
1870
1788
|
}),
|
|
1871
1789
|
|_| (
|
|
1872
1790
|
resolver(Mark::new(), Mark::new(), true),
|
|
1873
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1880
|
-
}
|
|
1881
|
-
)),
|
|
1791
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1792
|
+
filename: "index.js".into(),
|
|
1793
|
+
target: TransformTarget::LEPUS,
|
|
1794
|
+
custom_global_ident_names: None,
|
|
1795
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1796
|
+
})),
|
|
1882
1797
|
hygiene()
|
|
1883
1798
|
),
|
|
1884
1799
|
should_transform_in_class_lepus,
|
|
@@ -1901,15 +1816,12 @@ class App extends Component {
|
|
|
1901
1816
|
}),
|
|
1902
1817
|
|_| (
|
|
1903
1818
|
resolver(Mark::new(), Mark::new(), true),
|
|
1904
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1911
|
-
}
|
|
1912
|
-
)),
|
|
1819
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1820
|
+
filename: "index.js".into(),
|
|
1821
|
+
target: TransformTarget::JS,
|
|
1822
|
+
custom_global_ident_names: None,
|
|
1823
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1824
|
+
})),
|
|
1913
1825
|
hygiene()
|
|
1914
1826
|
),
|
|
1915
1827
|
should_transform_in_class_js,
|
|
@@ -1932,15 +1844,12 @@ class App extends Component {
|
|
|
1932
1844
|
}),
|
|
1933
1845
|
|_| (
|
|
1934
1846
|
resolver(Mark::new(), Mark::new(), true),
|
|
1935
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1942
|
-
}
|
|
1943
|
-
)),
|
|
1847
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1848
|
+
filename: "index.js".into(),
|
|
1849
|
+
target: TransformTarget::JS,
|
|
1850
|
+
custom_global_ident_names: None,
|
|
1851
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1852
|
+
})),
|
|
1944
1853
|
hygiene()
|
|
1945
1854
|
),
|
|
1946
1855
|
should_transform_in_class_js_capture_values,
|
|
@@ -1962,15 +1871,12 @@ class App extends Component {
|
|
|
1962
1871
|
}),
|
|
1963
1872
|
|_| (
|
|
1964
1873
|
resolver(Mark::new(), Mark::new(), true),
|
|
1965
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
1972
|
-
}
|
|
1973
|
-
)),
|
|
1874
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1875
|
+
filename: "index.js".into(),
|
|
1876
|
+
target: TransformTarget::LEPUS,
|
|
1877
|
+
custom_global_ident_names: None,
|
|
1878
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1879
|
+
})),
|
|
1974
1880
|
hygiene()
|
|
1975
1881
|
),
|
|
1976
1882
|
should_transform_in_class_static_lepus,
|
|
@@ -1992,15 +1898,12 @@ class App extends Component {
|
|
|
1992
1898
|
}),
|
|
1993
1899
|
|_| (
|
|
1994
1900
|
resolver(Mark::new(), Mark::new(), true),
|
|
1995
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2002
|
-
}
|
|
2003
|
-
)),
|
|
1901
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1902
|
+
filename: "index.js".into(),
|
|
1903
|
+
target: TransformTarget::JS,
|
|
1904
|
+
custom_global_ident_names: None,
|
|
1905
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1906
|
+
})),
|
|
2004
1907
|
hygiene()
|
|
2005
1908
|
),
|
|
2006
1909
|
should_transform_in_class_static_js,
|
|
@@ -2022,15 +1925,12 @@ class App extends Component {
|
|
|
2022
1925
|
}),
|
|
2023
1926
|
|_| (
|
|
2024
1927
|
resolver(Mark::new(), Mark::new(), true),
|
|
2025
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2032
|
-
}
|
|
2033
|
-
)),
|
|
1928
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1929
|
+
filename: "index.js".into(),
|
|
1930
|
+
target: TransformTarget::LEPUS,
|
|
1931
|
+
custom_global_ident_names: None,
|
|
1932
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1933
|
+
})),
|
|
2034
1934
|
hygiene()
|
|
2035
1935
|
),
|
|
2036
1936
|
should_transform_in_class_property_lepus,
|
|
@@ -2053,15 +1953,12 @@ class App extends Component {
|
|
|
2053
1953
|
}),
|
|
2054
1954
|
|_| (
|
|
2055
1955
|
resolver(Mark::new(), Mark::new(), true),
|
|
2056
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2063
|
-
}
|
|
2064
|
-
)),
|
|
1956
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1957
|
+
filename: "index.js".into(),
|
|
1958
|
+
target: TransformTarget::JS,
|
|
1959
|
+
custom_global_ident_names: None,
|
|
1960
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1961
|
+
})),
|
|
2065
1962
|
hygiene()
|
|
2066
1963
|
),
|
|
2067
1964
|
should_transform_in_class_property_js,
|
|
@@ -2084,15 +1981,12 @@ class App extends Component {
|
|
|
2084
1981
|
}),
|
|
2085
1982
|
|_| (
|
|
2086
1983
|
resolver(Mark::new(), Mark::new(), true),
|
|
2087
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2094
|
-
}
|
|
2095
|
-
)),
|
|
1984
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
1985
|
+
filename: "index.js".into(),
|
|
1986
|
+
target: TransformTarget::JS,
|
|
1987
|
+
custom_global_ident_names: None,
|
|
1988
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
1989
|
+
})),
|
|
2096
1990
|
hygiene()
|
|
2097
1991
|
),
|
|
2098
1992
|
should_transform_in_class_property_js_capture_values,
|
|
@@ -2114,15 +2008,12 @@ class App extends Component {
|
|
|
2114
2008
|
}),
|
|
2115
2009
|
|_| (
|
|
2116
2010
|
resolver(Mark::new(), Mark::new(), true),
|
|
2117
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2124
|
-
}
|
|
2125
|
-
)),
|
|
2011
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2012
|
+
filename: "index.js".into(),
|
|
2013
|
+
target: TransformTarget::LEPUS,
|
|
2014
|
+
custom_global_ident_names: None,
|
|
2015
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2016
|
+
})),
|
|
2126
2017
|
hygiene()
|
|
2127
2018
|
),
|
|
2128
2019
|
should_transform_in_class_static_property_lepus,
|
|
@@ -2144,15 +2035,12 @@ class App extends Component {
|
|
|
2144
2035
|
}),
|
|
2145
2036
|
|_| (
|
|
2146
2037
|
resolver(Mark::new(), Mark::new(), true),
|
|
2147
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2154
|
-
}
|
|
2155
|
-
)),
|
|
2038
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2039
|
+
filename: "index.js".into(),
|
|
2040
|
+
target: TransformTarget::JS,
|
|
2041
|
+
custom_global_ident_names: None,
|
|
2042
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2043
|
+
})),
|
|
2156
2044
|
hygiene()
|
|
2157
2045
|
),
|
|
2158
2046
|
should_transform_in_class_static_property_js,
|
|
@@ -2174,15 +2062,12 @@ class App extends Component {
|
|
|
2174
2062
|
}),
|
|
2175
2063
|
|_| (
|
|
2176
2064
|
resolver(Mark::new(), Mark::new(), true),
|
|
2177
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2184
|
-
}
|
|
2185
|
-
)),
|
|
2065
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2066
|
+
filename: "index.js".into(),
|
|
2067
|
+
target: TransformTarget::LEPUS,
|
|
2068
|
+
custom_global_ident_names: None,
|
|
2069
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2070
|
+
})),
|
|
2186
2071
|
hygiene()
|
|
2187
2072
|
),
|
|
2188
2073
|
should_not_transform_recursively,
|
|
@@ -2206,15 +2091,12 @@ function X() {
|
|
|
2206
2091
|
}),
|
|
2207
2092
|
|_| (
|
|
2208
2093
|
resolver(Mark::new(), Mark::new(), true),
|
|
2209
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2216
|
-
}
|
|
2217
|
-
)),
|
|
2094
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2095
|
+
filename: "index.js".into(),
|
|
2096
|
+
target: TransformTarget::LEPUS,
|
|
2097
|
+
custom_global_ident_names: None,
|
|
2098
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2099
|
+
})),
|
|
2218
2100
|
hygiene()
|
|
2219
2101
|
),
|
|
2220
2102
|
should_not_transform_when_wrong_directives,
|
|
@@ -2243,15 +2125,12 @@ function A() {
|
|
|
2243
2125
|
}),
|
|
2244
2126
|
|_| (
|
|
2245
2127
|
resolver(Mark::new(), Mark::new(), true),
|
|
2246
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2253
|
-
}
|
|
2254
|
-
)),
|
|
2128
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2129
|
+
filename: "index.js".into(),
|
|
2130
|
+
target: TransformTarget::JS,
|
|
2131
|
+
custom_global_ident_names: None,
|
|
2132
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2133
|
+
})),
|
|
2255
2134
|
hygiene()
|
|
2256
2135
|
),
|
|
2257
2136
|
should_not_transform_getter_and_setter,
|
|
@@ -2279,15 +2158,12 @@ class Bpp extends Component {
|
|
|
2279
2158
|
}),
|
|
2280
2159
|
|_| (
|
|
2281
2160
|
resolver(Mark::new(), Mark::new(), true),
|
|
2282
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2289
|
-
}
|
|
2290
|
-
)),
|
|
2161
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2162
|
+
filename: "index.js".into(),
|
|
2163
|
+
target: TransformTarget::JS,
|
|
2164
|
+
custom_global_ident_names: None,
|
|
2165
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2166
|
+
})),
|
|
2291
2167
|
hygiene()
|
|
2292
2168
|
),
|
|
2293
2169
|
should_not_transform_constructor,
|
|
@@ -2309,15 +2185,12 @@ class App extends Component {
|
|
|
2309
2185
|
}),
|
|
2310
2186
|
|_| (
|
|
2311
2187
|
resolver(Mark::new(), Mark::new(), true),
|
|
2312
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2319
|
-
}
|
|
2320
|
-
)),
|
|
2188
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2189
|
+
filename: "index.js".into(),
|
|
2190
|
+
target: TransformTarget::LEPUS,
|
|
2191
|
+
custom_global_ident_names: None,
|
|
2192
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2193
|
+
})),
|
|
2321
2194
|
hygiene()
|
|
2322
2195
|
),
|
|
2323
2196
|
should_not_destructure_from_closure,
|
|
@@ -2337,15 +2210,12 @@ class App extends Component {
|
|
|
2337
2210
|
}),
|
|
2338
2211
|
|_| (
|
|
2339
2212
|
resolver(Mark::new(), Mark::new(), true),
|
|
2340
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2347
|
-
}
|
|
2348
|
-
)),
|
|
2213
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2214
|
+
filename: "index.js".into(),
|
|
2215
|
+
target: TransformTarget::LEPUS,
|
|
2216
|
+
custom_global_ident_names: None,
|
|
2217
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2218
|
+
})),
|
|
2349
2219
|
hygiene()
|
|
2350
2220
|
),
|
|
2351
2221
|
should_capture_env_lepus,
|
|
@@ -2367,15 +2237,12 @@ class App extends Component {
|
|
|
2367
2237
|
}),
|
|
2368
2238
|
|_| (
|
|
2369
2239
|
resolver(Mark::new(), Mark::new(), true),
|
|
2370
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2377
|
-
}
|
|
2378
|
-
)),
|
|
2240
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2241
|
+
filename: "index.js".into(),
|
|
2242
|
+
target: TransformTarget::JS,
|
|
2243
|
+
custom_global_ident_names: None,
|
|
2244
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2245
|
+
})),
|
|
2379
2246
|
hygiene()
|
|
2380
2247
|
),
|
|
2381
2248
|
should_capture_env_js,
|
|
@@ -2397,15 +2264,12 @@ class App extends Component {
|
|
|
2397
2264
|
}),
|
|
2398
2265
|
|_| (
|
|
2399
2266
|
resolver(Mark::new(), Mark::new(), true),
|
|
2400
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2407
|
-
}
|
|
2408
|
-
)),
|
|
2267
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2268
|
+
filename: "index.js".into(),
|
|
2269
|
+
target: TransformTarget::LEPUS,
|
|
2270
|
+
custom_global_ident_names: Some(vec!["myCustomGlobal".to_string()]),
|
|
2271
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2272
|
+
})),
|
|
2409
2273
|
hygiene()
|
|
2410
2274
|
),
|
|
2411
2275
|
should_not_capture_globals,
|
|
@@ -2428,15 +2292,12 @@ class App extends Component {
|
|
|
2428
2292
|
}),
|
|
2429
2293
|
|_| (
|
|
2430
2294
|
resolver(Mark::new(), Mark::new(), true),
|
|
2431
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2438
|
-
}
|
|
2439
|
-
)),
|
|
2295
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2296
|
+
filename: "index.ts".into(),
|
|
2297
|
+
target: TransformTarget::LEPUS,
|
|
2298
|
+
custom_global_ident_names: None,
|
|
2299
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2300
|
+
})),
|
|
2440
2301
|
hygiene()
|
|
2441
2302
|
),
|
|
2442
2303
|
should_not_capture_type_annotations,
|
|
@@ -2460,15 +2321,12 @@ class App extends Component {
|
|
|
2460
2321
|
}),
|
|
2461
2322
|
|_| (
|
|
2462
2323
|
resolver(Mark::new(), Mark::new(), true),
|
|
2463
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2470
|
-
}
|
|
2471
|
-
)),
|
|
2324
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2325
|
+
filename: "index.ts".into(),
|
|
2326
|
+
target: TransformTarget::JS,
|
|
2327
|
+
custom_global_ident_names: None,
|
|
2328
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2329
|
+
})),
|
|
2472
2330
|
hygiene()
|
|
2473
2331
|
),
|
|
2474
2332
|
should_transform_js_fn_in_run_on_js_js,
|
|
@@ -2489,15 +2347,12 @@ class App extends Component {
|
|
|
2489
2347
|
}),
|
|
2490
2348
|
|_| (
|
|
2491
2349
|
resolver(Mark::new(), Mark::new(), true),
|
|
2492
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2499
|
-
}
|
|
2500
|
-
)),
|
|
2350
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2351
|
+
filename: "index.ts".into(),
|
|
2352
|
+
target: TransformTarget::LEPUS,
|
|
2353
|
+
custom_global_ident_names: None,
|
|
2354
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2355
|
+
})),
|
|
2501
2356
|
hygiene()
|
|
2502
2357
|
),
|
|
2503
2358
|
should_transform_js_fn_in_run_on_js_lepus,
|
|
@@ -2518,15 +2373,12 @@ class App extends Component {
|
|
|
2518
2373
|
}),
|
|
2519
2374
|
|_| (
|
|
2520
2375
|
resolver(Mark::new(), Mark::new(), true),
|
|
2521
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2528
|
-
}
|
|
2529
|
-
)),
|
|
2376
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2377
|
+
filename: "index.ts".into(),
|
|
2378
|
+
target: TransformTarget::JS,
|
|
2379
|
+
custom_global_ident_names: None,
|
|
2380
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2381
|
+
})),
|
|
2530
2382
|
hygiene()
|
|
2531
2383
|
),
|
|
2532
2384
|
should_extract_idents_outside_of_ctx,
|
|
@@ -2558,15 +2410,12 @@ class App extends Component {
|
|
|
2558
2410
|
}),
|
|
2559
2411
|
|_| (
|
|
2560
2412
|
resolver(Mark::new(), Mark::new(), true),
|
|
2561
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2568
|
-
}
|
|
2569
|
-
)),
|
|
2413
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2414
|
+
filename: "index.ts".into(),
|
|
2415
|
+
target: TransformTarget::LEPUS,
|
|
2416
|
+
custom_global_ident_names: None,
|
|
2417
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2418
|
+
})),
|
|
2570
2419
|
hygiene()
|
|
2571
2420
|
),
|
|
2572
2421
|
should_not_extract_idents_inside_of_ctx,
|
|
@@ -2598,15 +2447,12 @@ class App extends Component {
|
|
|
2598
2447
|
}),
|
|
2599
2448
|
|_| (
|
|
2600
2449
|
resolver(Mark::new(), Mark::new(), true),
|
|
2601
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2608
|
-
}
|
|
2609
|
-
)),
|
|
2450
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2451
|
+
filename: "index.ts".into(),
|
|
2452
|
+
target: TransformTarget::LEPUS,
|
|
2453
|
+
custom_global_ident_names: None,
|
|
2454
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2455
|
+
})),
|
|
2610
2456
|
hygiene()
|
|
2611
2457
|
),
|
|
2612
2458
|
should_not_extract_catch_clause_params,
|
|
@@ -2627,15 +2473,12 @@ class App extends Component {
|
|
|
2627
2473
|
}),
|
|
2628
2474
|
|_| (
|
|
2629
2475
|
resolver(Mark::new(), Mark::new(), true),
|
|
2630
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2637
|
-
}
|
|
2638
|
-
)),
|
|
2476
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2477
|
+
filename: "index.ts".into(),
|
|
2478
|
+
target: TransformTarget::LEPUS,
|
|
2479
|
+
custom_global_ident_names: None,
|
|
2480
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2481
|
+
})),
|
|
2639
2482
|
hygiene()
|
|
2640
2483
|
),
|
|
2641
2484
|
should_extract_ident_from_this_lepus,
|
|
@@ -2655,15 +2498,12 @@ class App extends Component {
|
|
|
2655
2498
|
}),
|
|
2656
2499
|
|_| (
|
|
2657
2500
|
resolver(Mark::new(), Mark::new(), true),
|
|
2658
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2665
|
-
}
|
|
2666
|
-
)),
|
|
2501
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2502
|
+
filename: "index.ts".into(),
|
|
2503
|
+
target: TransformTarget::JS,
|
|
2504
|
+
custom_global_ident_names: None,
|
|
2505
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2506
|
+
})),
|
|
2667
2507
|
hygiene()
|
|
2668
2508
|
),
|
|
2669
2509
|
should_extract_ident_from_this_js,
|
|
@@ -2683,15 +2523,12 @@ class App extends Component {
|
|
|
2683
2523
|
}),
|
|
2684
2524
|
|_| (
|
|
2685
2525
|
resolver(Mark::new(), Mark::new(), true),
|
|
2686
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2693
|
-
}
|
|
2694
|
-
)),
|
|
2526
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2527
|
+
filename: "index.ts".into(),
|
|
2528
|
+
target: TransformTarget::JS,
|
|
2529
|
+
custom_global_ident_names: None,
|
|
2530
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2531
|
+
})),
|
|
2695
2532
|
hygiene()
|
|
2696
2533
|
),
|
|
2697
2534
|
should_not_extract_ident_from_this,
|
|
@@ -2735,15 +2572,12 @@ class App extends Component {
|
|
|
2735
2572
|
}),
|
|
2736
2573
|
|_| (
|
|
2737
2574
|
resolver(Mark::new(), Mark::new(), true),
|
|
2738
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2745
|
-
}
|
|
2746
|
-
)),
|
|
2575
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2576
|
+
filename: "index.ts".into(),
|
|
2577
|
+
target: TransformTarget::JS,
|
|
2578
|
+
custom_global_ident_names: None,
|
|
2579
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2580
|
+
})),
|
|
2747
2581
|
hygiene()
|
|
2748
2582
|
),
|
|
2749
2583
|
should_transform_ui_worklet_js,
|
|
@@ -2762,15 +2596,12 @@ class App extends Component {
|
|
|
2762
2596
|
}),
|
|
2763
2597
|
|_| (
|
|
2764
2598
|
resolver(Mark::new(), Mark::new(), true),
|
|
2765
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2772
|
-
}
|
|
2773
|
-
)),
|
|
2599
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2600
|
+
filename: "index.ts".into(),
|
|
2601
|
+
target: TransformTarget::LEPUS,
|
|
2602
|
+
custom_global_ident_names: None,
|
|
2603
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2604
|
+
})),
|
|
2774
2605
|
hygiene()
|
|
2775
2606
|
),
|
|
2776
2607
|
should_transform_ui_worklet_lepus,
|
|
@@ -2789,15 +2620,12 @@ class App extends Component {
|
|
|
2789
2620
|
}),
|
|
2790
2621
|
|_| (
|
|
2791
2622
|
resolver(Mark::new(), Mark::new(), true),
|
|
2792
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2799
|
-
}
|
|
2800
|
-
)),
|
|
2623
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2624
|
+
filename: "index.ts".into(),
|
|
2625
|
+
target: TransformTarget::JS,
|
|
2626
|
+
custom_global_ident_names: None,
|
|
2627
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2628
|
+
})),
|
|
2801
2629
|
hygiene()
|
|
2802
2630
|
),
|
|
2803
2631
|
class_in_worklet_1,
|
|
@@ -2827,15 +2655,12 @@ class App extends Component {
|
|
|
2827
2655
|
}),
|
|
2828
2656
|
|_| (
|
|
2829
2657
|
resolver(Mark::new(), Mark::new(), true),
|
|
2830
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2837
|
-
}
|
|
2838
|
-
)),
|
|
2658
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2659
|
+
filename: "index.ts".into(),
|
|
2660
|
+
target: TransformTarget::JS,
|
|
2661
|
+
custom_global_ident_names: None,
|
|
2662
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2663
|
+
})),
|
|
2839
2664
|
hygiene()
|
|
2840
2665
|
),
|
|
2841
2666
|
should_extract_member_expr_js,
|
|
@@ -2857,6 +2682,8 @@ class App extends Component {
|
|
|
2857
2682
|
rrrr.ssss;
|
|
2858
2683
|
rrrr.ssss.tttt;
|
|
2859
2684
|
uuuu["__??__"];
|
|
2685
|
+
if (enabled && handlers?.start) handlers.start();
|
|
2686
|
+
vvvv?.wwww?.xxxx;
|
|
2860
2687
|
}
|
|
2861
2688
|
"#
|
|
2862
2689
|
);
|
|
@@ -2868,15 +2695,12 @@ class App extends Component {
|
|
|
2868
2695
|
}),
|
|
2869
2696
|
|_| (
|
|
2870
2697
|
resolver(Mark::new(), Mark::new(), true),
|
|
2871
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2878
|
-
}
|
|
2879
|
-
)),
|
|
2698
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2699
|
+
filename: "index.ts".into(),
|
|
2700
|
+
target: TransformTarget::LEPUS,
|
|
2701
|
+
custom_global_ident_names: None,
|
|
2702
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2703
|
+
})),
|
|
2880
2704
|
hygiene()
|
|
2881
2705
|
),
|
|
2882
2706
|
should_extract_member_expr_lepus,
|
|
@@ -2898,6 +2722,8 @@ class App extends Component {
|
|
|
2898
2722
|
rrrr.ssss;
|
|
2899
2723
|
rrrr.ssss.tttt;
|
|
2900
2724
|
uuuu["__??__"];
|
|
2725
|
+
if (enabled && handlers?.start) handlers.start();
|
|
2726
|
+
vvvv?.wwww?.xxxx;
|
|
2901
2727
|
}
|
|
2902
2728
|
"#
|
|
2903
2729
|
);
|
|
@@ -2909,15 +2735,12 @@ class App extends Component {
|
|
|
2909
2735
|
}),
|
|
2910
2736
|
|_| (
|
|
2911
2737
|
resolver(Mark::new(), Mark::new(), true),
|
|
2912
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2919
|
-
}
|
|
2920
|
-
)),
|
|
2738
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2739
|
+
filename: "index.ts".into(),
|
|
2740
|
+
target: TransformTarget::JS,
|
|
2741
|
+
custom_global_ident_names: None,
|
|
2742
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2743
|
+
})),
|
|
2921
2744
|
hygiene()
|
|
2922
2745
|
),
|
|
2923
2746
|
should_extract_member_expr_2_js,
|
|
@@ -2937,6 +2760,7 @@ class App extends Component {
|
|
|
2937
2760
|
this.hhhh.kkkk;
|
|
2938
2761
|
this.hhhh.iiii.jjjj;
|
|
2939
2762
|
this.llll[this.mmmm.nnnn['oooo']];
|
|
2763
|
+
this.pppp?.qqqq?.rrrr;
|
|
2940
2764
|
aaaa;
|
|
2941
2765
|
bbbb;
|
|
2942
2766
|
eeee;
|
|
@@ -2952,15 +2776,12 @@ class App extends Component {
|
|
|
2952
2776
|
}),
|
|
2953
2777
|
|_| (
|
|
2954
2778
|
resolver(Mark::new(), Mark::new(), true),
|
|
2955
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
2962
|
-
}
|
|
2963
|
-
)),
|
|
2779
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2780
|
+
filename: "index.ts".into(),
|
|
2781
|
+
target: TransformTarget::LEPUS,
|
|
2782
|
+
custom_global_ident_names: None,
|
|
2783
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2784
|
+
})),
|
|
2964
2785
|
hygiene()
|
|
2965
2786
|
),
|
|
2966
2787
|
should_extract_member_expr_2_lepus,
|
|
@@ -2980,6 +2801,7 @@ class App extends Component {
|
|
|
2980
2801
|
this.hhhh.kkkk;
|
|
2981
2802
|
this.hhhh.iiii.jjjj;
|
|
2982
2803
|
this.llll[this.mmmm.nnnn['oooo']];
|
|
2804
|
+
this.pppp?.qqqq?.rrrr;
|
|
2983
2805
|
aaaa;
|
|
2984
2806
|
bbbb;
|
|
2985
2807
|
eeee;
|
|
@@ -2995,15 +2817,12 @@ class App extends Component {
|
|
|
2995
2817
|
}),
|
|
2996
2818
|
|_| (
|
|
2997
2819
|
resolver(Mark::new(), Mark::new(), true),
|
|
2998
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
3005
|
-
}
|
|
3006
|
-
)),
|
|
2820
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2821
|
+
filename: "index.ts".into(),
|
|
2822
|
+
target: TransformTarget::JS,
|
|
2823
|
+
custom_global_ident_names: None,
|
|
2824
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2825
|
+
})),
|
|
3007
2826
|
hygiene()
|
|
3008
2827
|
),
|
|
3009
2828
|
should_extract_member_expr_3_js,
|
|
@@ -3101,15 +2920,12 @@ class App extends Component {
|
|
|
3101
2920
|
}),
|
|
3102
2921
|
|_| (
|
|
3103
2922
|
resolver(Mark::new(), Mark::new(), true),
|
|
3104
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
3111
|
-
}
|
|
3112
|
-
)),
|
|
2923
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
2924
|
+
filename: "index.ts".into(),
|
|
2925
|
+
target: TransformTarget::LEPUS,
|
|
2926
|
+
custom_global_ident_names: None,
|
|
2927
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
2928
|
+
})),
|
|
3113
2929
|
hygiene()
|
|
3114
2930
|
),
|
|
3115
2931
|
should_extract_member_expr_3_lepus,
|
|
@@ -3207,15 +3023,12 @@ class App extends Component {
|
|
|
3207
3023
|
}),
|
|
3208
3024
|
|_| (
|
|
3209
3025
|
resolver(Mark::new(), Mark::new(), true),
|
|
3210
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
3217
|
-
}
|
|
3218
|
-
)),
|
|
3026
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
3027
|
+
filename: "index.ts".into(),
|
|
3028
|
+
target: TransformTarget::JS,
|
|
3029
|
+
custom_global_ident_names: None,
|
|
3030
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
3031
|
+
})),
|
|
3219
3032
|
hygiene()
|
|
3220
3033
|
),
|
|
3221
3034
|
should_extract_member_expr_4_js,
|
|
@@ -3237,15 +3050,12 @@ class App extends Component {
|
|
|
3237
3050
|
}),
|
|
3238
3051
|
|_| (
|
|
3239
3052
|
resolver(Mark::new(), Mark::new(), true),
|
|
3240
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
3247
|
-
}
|
|
3248
|
-
)),
|
|
3053
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
3054
|
+
filename: "index.ts".into(),
|
|
3055
|
+
target: TransformTarget::LEPUS,
|
|
3056
|
+
custom_global_ident_names: None,
|
|
3057
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
3058
|
+
})),
|
|
3249
3059
|
hygiene()
|
|
3250
3060
|
),
|
|
3251
3061
|
should_extract_member_expr_4_lepus,
|
|
@@ -3266,15 +3076,12 @@ class App extends Component {
|
|
|
3266
3076
|
}),
|
|
3267
3077
|
|_| (
|
|
3268
3078
|
resolver(Mark::new(), Mark::new(), true),
|
|
3269
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
3276
|
-
}
|
|
3277
|
-
)),
|
|
3079
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
3080
|
+
filename: "index.ts".into(),
|
|
3081
|
+
target: TransformTarget::LEPUS,
|
|
3082
|
+
custom_global_ident_names: None,
|
|
3083
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
3084
|
+
})),
|
|
3278
3085
|
hygiene()
|
|
3279
3086
|
),
|
|
3280
3087
|
should_transform_fn_decl_lepus,
|
|
@@ -3295,15 +3102,12 @@ class App extends Component {
|
|
|
3295
3102
|
}),
|
|
3296
3103
|
|_| (
|
|
3297
3104
|
resolver(Mark::new(), Mark::new(), true),
|
|
3298
|
-
visit_mut_pass(WorkletVisitor::new(
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
runtime_pkg: "@lynx-js/react".into(),
|
|
3305
|
-
}
|
|
3306
|
-
)),
|
|
3105
|
+
visit_mut_pass(WorkletVisitor::new(WorkletVisitorConfig {
|
|
3106
|
+
filename: "index.ts".into(),
|
|
3107
|
+
target: TransformTarget::JS,
|
|
3108
|
+
custom_global_ident_names: None,
|
|
3109
|
+
runtime_pkg: "@lynx-js/react".into(),
|
|
3110
|
+
})),
|
|
3307
3111
|
hygiene()
|
|
3308
3112
|
),
|
|
3309
3113
|
should_transform_fn_decl_js,
|