@lynx-js/react 0.126.1 → 0.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/components/tsconfig.tsbuildinfo +1 -1
- package/docs/directives.md +90 -0
- package/docs/global-events.md +50 -0
- package/docs/import-attributes.md +43 -0
- package/docs/macros.md +285 -0
- package/package.json +4 -3
- package/refresh/.turbo/turbo-build.log +4 -4
- package/refresh/dist/index.js +27 -8
- package/refresh/package.json +2 -2
- package/runtime/__test__/core/main-thread-object.test.js +149 -0
- package/runtime/__test__/element-template/debug/profile-installation.test.tsx +97 -1
- package/runtime/__test__/element-template/fixtures/background/hydrate-compiled/children.non-string-raw-text-key-on-main/output.txt +1 -1
- package/runtime/__test__/element-template/fixtures/background/main-thread-function/run-on-main-thread/index.tsx +26 -3
- package/runtime/__test__/element-template/fixtures/render/child-siblings/index.js.txt +15 -11
- package/runtime/__test__/element-template/fixtures/render/component/index.js.txt +8 -7
- package/runtime/__test__/element-template/fixtures/render/component-slot-content/index.js.txt +14 -10
- package/runtime/__test__/element-template/fixtures/render/css-scope-dynamic-bundle-url/index.js.txt +4 -3
- package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/_shared.ts +2 -9
- package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/appends-root-text-via-append-element/case.ts +2 -4
- package/runtime/__test__/element-template/fixtures/render/direct-native/creates-template-from-attrs-and-slot-text/case.ts +20 -0
- package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-template-children-in-the-same-slot/case.ts +3 -16
- package/runtime/__test__/element-template/fixtures/render/direct-native/handles-multiple-text-nodes-in-the-same-slot/case.ts +18 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/inserts-nested-templates-into-parent-slots/case.ts +20 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/keeps-slot-children-separated-and-ordered/case.ts +18 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/passes-bundle-url-to-native-create/case.ts +15 -0
- package/runtime/__test__/element-template/fixtures/render/mapped-view-children/index.js.txt +12 -11
- package/runtime/__test__/element-template/fixtures/render/mixed-children/index.js.txt +8 -7
- package/runtime/__test__/element-template/fixtures/render/multiple-text/index.js.txt +15 -13
- package/runtime/__test__/element-template/fixtures/render/nested-templates/index.js.txt +9 -7
- package/runtime/__test__/element-template/fixtures/render/react-example/index.js.txt +17 -20
- package/runtime/__test__/element-template/fixtures/render/sparse-element-slot/index.js.txt +13 -10
- package/runtime/__test__/element-template/fixtures/render/template-dedupe/index.js.txt +14 -11
- package/runtime/__test__/element-template/imports/main-thread-object-api.test.ts +10 -0
- package/runtime/__test__/element-template/imports/suspense-lazy.test.ts +52 -7
- package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +3 -0
- package/runtime/__test__/element-template/native/reload.test.ts +10 -26
- package/runtime/__test__/element-template/runtime/background/component-stack.test.tsx +76 -0
- package/runtime/__test__/element-template/runtime/background/hydrate.test.ts +87 -43
- package/runtime/__test__/element-template/runtime/background/instance.test.ts +14 -0
- package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +4 -0
- package/runtime/__test__/element-template/runtime/render/compact-host-debug.test.ts +57 -0
- package/runtime/__test__/element-template/runtime/render/compact-host.test.ts +199 -0
- package/runtime/__test__/element-template/runtime/render/render-components.test.jsx +292 -0
- package/runtime/__test__/element-template/runtime/render/{render-opcodes-into-element-template.et.test.tsx → render-direct-native.test.tsx} +50 -314
- package/runtime/__test__/element-template/runtime/render/render-direct-suspense.test.ts +378 -0
- package/runtime/__test__/element-template/runtime/render/render-direct.test.ts +491 -0
- package/runtime/__test__/element-template/runtime/render/render-main-thread.contract.test.ts +2 -28
- package/runtime/__test__/element-template/runtime/render/render-main-thread.test.ts +21 -35
- package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +6 -5
- package/runtime/__test__/element-template/test-utils/debug/renderFixtureRunner.ts +4 -4
- package/runtime/__test__/element-template/vitest.config.ts +2 -1
- package/runtime/__test__/snapshot/ctxNotFound.test.ts +271 -0
- package/runtime/__test__/snapshot/debug/main-thread-children-with-same-key.test.ts +28 -0
- package/runtime/__test__/snapshot/debug/profile.test.jsx +108 -3
- package/runtime/__test__/snapshot/event.test.jsx +7 -7
- package/runtime/__test__/snapshot/lazy.test.js +114 -7
- package/runtime/__test__/snapshot/lifecycle/reloadGc.test.jsx +66 -0
- package/runtime/__test__/snapshot/lynx/portals.test.jsx +75 -37
- package/runtime/__test__/snapshot/lynx/runtime-version.test.ts +140 -0
- package/runtime/__test__/snapshot/snapshotPatch.test.jsx +59 -47
- package/runtime/__test__/snapshot/spread.test.jsx +32 -25
- package/runtime/__test__/snapshot/ssr.legacy-slot.test.jsx +168 -0
- package/runtime/__test__/snapshot/ssr.list.test.jsx +211 -0
- package/runtime/__test__/snapshot/worklet/main-thread-object.test.jsx +306 -0
- package/runtime/__test__/snapshot/worklet/workletRef.test.jsx +1 -0
- package/runtime/__test__/worklet-runtime/hydrate.test.js +92 -0
- package/runtime/__test__/worklet-runtime/mainThreadObject.test.js +182 -0
- package/runtime/__test__/worklet-runtime/object-methods.test.js +60 -0
- package/runtime/__test__/worklet-runtime/runOnBackground.test.js +8 -6
- package/runtime/__test__/worklet-runtime/workletRef.test.js +362 -2
- package/runtime/__test__/worklet-runtime/workletRuntime.test.js +249 -3
- package/runtime/lazy/compat.js +2 -0
- package/runtime/lazy/element-template-import.js +0 -4
- package/runtime/lazy/element-template-internal.js +19 -8
- package/runtime/lazy/element-template-jsx-dev-runtime.js +1 -8
- package/runtime/lazy/element-template-jsx-runtime.js +1 -3
- package/runtime/lazy/element-template.js +3 -3
- package/runtime/lazy/import.js +0 -4
- package/runtime/lazy/internal.js +17 -1
- package/runtime/lazy/react.js +2 -0
- package/runtime/lazy/target.js +0 -21
- package/runtime/lib/core/background-function/run-on-background.d.ts +16 -0
- package/runtime/lib/core/background-function/run-on-background.js +16 -0
- package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
- package/runtime/lib/core/capture-main-thread-object.js +16 -0
- package/runtime/lib/core/capture-main-thread-object.js.map +1 -0
- package/runtime/lib/core/globalProps.d.ts +2 -0
- package/runtime/lib/core/globalProps.js.map +1 -1
- package/runtime/lib/core/hooks/react.d.ts +6 -0
- package/runtime/lib/core/hooks/react.js +6 -0
- package/runtime/lib/core/hooks/react.js.map +1 -1
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.d.ts +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js.map +1 -1
- package/runtime/lib/core/initData.d.ts +2 -0
- package/runtime/lib/core/initData.js +2 -0
- package/runtime/lib/core/initData.js.map +1 -1
- package/runtime/lib/core/lynx/runtime-version.d.ts +16 -0
- package/runtime/lib/core/lynx/runtime-version.js +51 -0
- package/runtime/lib/core/lynx/runtime-version.js.map +1 -0
- package/runtime/lib/core/main-thread-object-handle-registry.d.ts +3 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js +17 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js.map +1 -0
- package/runtime/lib/core/main-thread-object.d.ts +77 -0
- package/runtime/lib/core/main-thread-object.js +261 -0
- package/runtime/lib/core/main-thread-object.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-id.js +14 -0
- package/runtime/lib/core/main-thread-ref-id.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-init-value.d.ts +1 -1
- package/runtime/lib/core/main-thread-ref-init-value.js +4 -2
- package/runtime/lib/core/main-thread-ref-init-value.js.map +1 -1
- package/runtime/lib/core/main-thread-ref.d.ts +4 -0
- package/runtime/lib/core/main-thread-ref.js +5 -8
- package/runtime/lib/core/main-thread-ref.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/background/document.d.ts +1 -1
- package/runtime/lib/element-template/background/document.js +1 -1
- package/runtime/lib/element-template/background/document.js.map +1 -1
- package/runtime/lib/element-template/background/hydrate.js +51 -19
- package/runtime/lib/element-template/background/hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/instance.js +5 -6
- package/runtime/lib/element-template/background/instance.js.map +1 -1
- package/runtime/lib/element-template/debug/profile.js +38 -22
- package/runtime/lib/element-template/debug/profile.js.map +1 -1
- package/runtime/lib/element-template/index.d.ts +3 -1
- package/runtime/lib/element-template/index.js +2 -1
- package/runtime/lib/element-template/index.js.map +1 -1
- package/runtime/lib/element-template/internal.d.ts +5 -1
- package/runtime/lib/element-template/internal.js +7 -1
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/native/index.js +4 -0
- package/runtime/lib/element-template/native/index.js.map +1 -1
- package/runtime/lib/element-template/protocol/types.d.ts +1 -1
- package/runtime/lib/element-template/runtime/list/list.d.ts +1 -0
- package/runtime/lib/element-template/runtime/list/list.js +3 -0
- package/runtime/lib/element-template/runtime/list/list.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/create-rendered-host.d.ts +7 -0
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js +65 -0
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/host.d.ts +18 -0
- package/runtime/lib/element-template/runtime/render/host.js +25 -0
- package/runtime/lib/element-template/runtime/render/host.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/render-components.d.ts +6 -0
- package/runtime/lib/element-template/runtime/render/render-components.js +190 -0
- package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/{render-opcodes.d.ts → render-direct.d.ts} +3 -1
- package/runtime/lib/element-template/runtime/render/render-direct.js +194 -0
- package/runtime/lib/element-template/runtime/render/render-direct.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/render-main-thread.js +10 -9
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/handle.d.ts +2 -1
- package/runtime/lib/element-template/runtime/template/handle.js +12 -4
- package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
- package/runtime/lib/element-template/runtime-marker.d.ts +1 -0
- package/runtime/lib/element-template/runtime-marker.js +13 -0
- package/runtime/lib/element-template/runtime-marker.js.map +1 -0
- package/runtime/lib/index.d.ts +1 -1
- package/runtime/lib/index.js +1 -1
- package/runtime/lib/index.js.map +1 -1
- package/runtime/lib/internal.d.ts +4 -1
- package/runtime/lib/internal.js +6 -1
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.d.ts +49 -6
- package/runtime/lib/lynx-api.js +34 -4
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/lynx.js +4 -1
- package/runtime/lib/lynx.js.map +1 -1
- package/runtime/lib/runtime-marker.d.ts +1 -0
- package/runtime/lib/runtime-marker.js +13 -0
- package/runtime/lib/runtime-marker.js.map +1 -0
- package/runtime/lib/shared/component-stack.js +5 -1
- package/runtime/lib/shared/component-stack.js.map +1 -1
- package/runtime/lib/snapshot/debug/profileHooks.js +38 -22
- package/runtime/lib/snapshot/debug/profileHooks.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.d.ts +11 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.js +24 -16
- package/runtime/lib/snapshot/lifecycle/patch/error.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.d.ts +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +29 -7
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +2 -2
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/reload.js +3 -0
- package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
- package/runtime/lib/snapshot/lynx/calledByNative.js +3 -0
- package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
- package/runtime/lib/snapshot/lynx/children.d.ts +2 -0
- package/runtime/lib/snapshot/lynx/children.js.map +1 -1
- package/runtime/lib/snapshot/lynx/element.d.ts +10 -0
- package/runtime/lib/snapshot/lynx/element.js +6 -0
- package/runtime/lib/snapshot/lynx/element.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js +2 -1
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.d.ts +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
- package/runtime/lib/snapshot/worklet/ref/updateInitValue.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.d.ts +3 -3
- package/runtime/lib/worklet-runtime/bindings/bindings.js +9 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/types.d.ts +3 -6
- package/runtime/lib/worklet-runtime/bindings/types.js.map +1 -1
- package/runtime/lib/worklet-runtime/hydrate.js +27 -8
- package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
- package/runtime/lib/worklet-runtime/mainThreadObject.d.ts +8 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js +67 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js.map +1 -0
- package/runtime/lib/worklet-runtime/workletRef.d.ts +11 -7
- package/runtime/lib/worklet-runtime/workletRef.js +72 -9
- package/runtime/lib/worklet-runtime/workletRef.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js +69 -19
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/package.json +2 -3
- package/runtime/src/core/background-function/run-on-background.ts +16 -0
- package/runtime/src/core/capture-main-thread-object.ts +17 -0
- package/runtime/src/core/globalProps.ts +2 -0
- package/runtime/src/core/hooks/react.ts +6 -0
- package/runtime/src/core/hooks/useLynxGlobalEventListener.ts +2 -0
- package/runtime/src/core/initData.ts +2 -0
- package/runtime/src/core/lynx/runtime-version.ts +62 -0
- package/runtime/src/core/main-thread-object-handle-registry.ts +25 -0
- package/runtime/src/core/main-thread-object.ts +387 -0
- package/runtime/src/core/main-thread-ref-id.ts +16 -0
- package/runtime/src/core/main-thread-ref-init-value.ts +12 -4
- package/runtime/src/core/main-thread-ref.ts +7 -8
- package/runtime/src/element-template/background/commit-hook.ts +1 -1
- package/runtime/src/element-template/background/document.ts +3 -3
- package/runtime/src/element-template/background/hydrate.ts +61 -29
- package/runtime/src/element-template/background/instance.ts +5 -6
- package/runtime/src/element-template/debug/profile.ts +48 -36
- package/runtime/src/element-template/index.ts +7 -1
- package/runtime/src/element-template/internal.ts +14 -1
- package/runtime/src/element-template/native/index.ts +4 -0
- package/runtime/src/element-template/protocol/types.ts +1 -1
- package/runtime/src/element-template/runtime/list/list.ts +4 -0
- package/runtime/src/element-template/runtime/render/create-rendered-host.ts +126 -0
- package/runtime/src/element-template/runtime/render/host.ts +51 -0
- package/runtime/src/element-template/runtime/render/render-components.ts +255 -0
- package/runtime/src/element-template/runtime/render/render-direct.ts +275 -0
- package/runtime/src/element-template/runtime/render/render-main-thread.ts +10 -9
- package/runtime/src/element-template/runtime/template/handle.ts +17 -7
- package/runtime/src/element-template/runtime-marker.ts +17 -0
- package/runtime/src/index.ts +1 -1
- package/runtime/src/internal.ts +11 -1
- package/runtime/src/lynx-api.ts +53 -6
- package/runtime/src/lynx.ts +5 -1
- package/runtime/src/runtime-marker.ts +17 -0
- package/runtime/src/shared/component-stack.ts +5 -1
- package/runtime/src/snapshot/debug/profileHooks.ts +52 -40
- package/runtime/src/snapshot/lifecycle/patch/error.ts +36 -19
- package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +29 -7
- package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +2 -2
- package/runtime/src/snapshot/lifecycle/reload.ts +4 -0
- package/runtime/src/snapshot/lynx/calledByNative.ts +4 -0
- package/runtime/src/snapshot/lynx/children.ts +2 -0
- package/runtime/src/snapshot/lynx/element.ts +10 -0
- package/runtime/src/snapshot/renderToOpcodes/opcodes.ts +2 -1
- package/runtime/src/snapshot/worklet/call/runOnMainThread.ts +2 -0
- package/runtime/src/snapshot/worklet/ref/updateInitValue.ts +1 -1
- package/runtime/src/worklet-runtime/bindings/bindings.ts +17 -2
- package/runtime/src/worklet-runtime/bindings/types.ts +7 -11
- package/runtime/src/worklet-runtime/hydrate.ts +44 -11
- package/runtime/src/worklet-runtime/mainThreadObject.ts +117 -0
- package/runtime/src/worklet-runtime/workletRef.ts +120 -19
- package/runtime/src/worklet-runtime/workletRuntime.ts +84 -21
- package/runtime/types/types.d.ts +2 -0
- package/runtime/worklet-runtime/dev.js +155 -30
- package/runtime/worklet-runtime/main.js +1 -1
- package/testing-library/.turbo/turbo-build.log +12 -12
- package/testing-library/dist/env/index.js +2 -2
- package/testing-library/dist/index.d.ts +167 -4
- package/testing-library/dist/plugins/index.js +1 -1
- package/testing-library/dist/pure.js +45 -44
- package/testing-library/etc/react-lynx-testing-library.api.md +1 -1
- package/testing-library/package.json +4 -3
- package/testing-library/src/__tests__/lynx.test.jsx +1 -1
- package/testing-library/src/__tests__/reload/reloadGc.test.jsx +64 -0
- package/testing-library/src/__tests__/reload/reloadTemplate.js +39 -0
- package/testing-library/src/__tests__/worklet.test.jsx +46 -1
- package/testing-library/tsconfig.docs.json +9 -0
- package/testing-library/typedoc.json +22 -0
- package/testing-library/types/entry.d.ts +2 -2
- package/transform/.turbo/turbo-build$colon$wasm.log +151 -67
- package/transform/__test__/fixture.spec.js +89 -50
- package/transform/__test__/object-methods.spec.js +84 -0
- package/transform/__test__/text.spec.js +75 -0
- package/transform/crates/swc_plugin_compat/lib.rs +4 -3
- package/transform/crates/swc_plugin_compat/napi.rs +4 -3
- package/transform/crates/swc_plugin_define_dce/napi.rs +1 -1
- package/transform/crates/swc_plugin_dynamic_import/lib.rs +105 -3
- package/transform/crates/swc_plugin_dynamic_import/tests/__swc_snapshots__/lib.rs/should_suffix_webpack_chunk_name.js +5 -0
- package/transform/crates/swc_plugin_element_template/host_lowering.rs +111 -0
- package/transform/crates/swc_plugin_element_template/lib.rs +41 -5
- package/transform/crates/swc_plugin_element_template/lowering.rs +39 -7
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_generate_attribute_slots_for_dynamic_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_background_conditional_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_boolean_and_number_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_complex_text_structure.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_dataset_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_deeply_nested_user_components.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_dynamic_class_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_events_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_id_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_inline_styles.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_interpolated_text_with_siblings_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_mixed_content.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_nested_structure_and_dynamic_content.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_refs_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_sibling_user_components.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_spread_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_user_component.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_isolate_arrays_with_child_slot_placeholder.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_keep_code_and_template_attribute_slots_in_sync_for_spread.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_output_element_template_simple_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_output_template_with_static_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_verify_template_structure_complex.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_verify_text_attribute_and_child_text_slots.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/element_template.rs +70 -66
- package/transform/crates/swc_plugin_element_template/tests/element_template_contract.rs +94 -8
- package/transform/crates/swc_plugin_shake/lib.rs +1 -1
- package/transform/crates/swc_plugin_shake/napi.rs +1 -1
- package/transform/crates/swc_plugin_text/lib.rs +57 -16
- package/transform/crates/swc_plugin_text/tests/__swc_snapshots__/lib.rs/should_keep_children_for_dynamic_or_multiple_text.js +13 -0
- package/transform/crates/swc_plugin_text/tests/__swc_snapshots__/lib.rs/should_transform_string_expressions_to_text_attr.js +13 -0
- package/transform/crates/swc_plugin_worklet/decl_collect.rs +10 -0
- package/transform/crates/swc_plugin_worklet/extract_ident.rs +14 -0
- package/transform/crates/swc_plugin_worklet/gen_stmt.rs +202 -3
- package/transform/crates/swc_plugin_worklet/lib.rs +468 -3
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_js.js +8 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +10 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_js.js +27 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_lepus.js +45 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +16 -14
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +16 -16
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +7 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +7 -7
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_computed_object_method_key_lepus.js +24 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_object_method_local_decls_lepus.js +16 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +42 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +58 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js.js +3 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +3 -3
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_js.js +9 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_lepus.js +16 -0
- package/transform/crates/swc_plugins_shared/jsx_helpers.rs +8 -4
- package/transform/dist/wasm.cjs +1 -1
- package/transform/index.d.ts +7 -6
- package/transform/rspack-napi/tsconfig.tsbuildinfo +1 -1
- package/transform/src/swc_plugin_extract_str/mod.rs +1 -1
- package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +63 -270
- package/transform/swc-plugin-reactlynx/index.d.ts +2 -2
- package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +306 -170
- package/transform/swc-plugin-reactlynx-compat/index.d.ts +3 -3
- package/transform/swc-plugin-reactlynx-compat/swc_plugin_reactlynx_compat.wasm +0 -0
- package/transform/vitest.config.ts +5 -1
- package/types/react.docs.d.ts +130 -11
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/creates-template-from-attrs-and-slot-text/case.ts +0 -39
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/handles-multiple-text-nodes-in-the-same-slot/case.ts +0 -29
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/inserts-nested-templates-into-parent-slots/case.ts +0 -42
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/keeps-slot-children-separated-and-ordered/case.ts +0 -31
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/passes-bundle-url-to-native-create/case.ts +0 -20
- package/runtime/__test__/element-template/runtime/render/render-to-opcodes.et.test.jsx +0 -522
- package/runtime/lib/element-template/runtime/render/render-opcodes.js +0 -216
- package/runtime/lib/element-template/runtime/render/render-opcodes.js.map +0 -1
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.d.ts +0 -16
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.js +0 -324
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.js.map +0 -1
- package/runtime/lib/element-template/runtime-backend-marker.js +0 -6
- package/runtime/lib/element-template/runtime-backend-marker.js.map +0 -1
- package/runtime/lib/runtime-backend-marker.js +0 -6
- package/runtime/lib/runtime-backend-marker.js.map +0 -1
- package/runtime/src/element-template/runtime/render/render-opcodes.ts +0 -313
- package/runtime/src/element-template/runtime/render/render-to-opcodes.ts +0 -411
- package/runtime/src/element-template/runtime-backend-marker.ts +0 -7
- package/runtime/src/runtime-backend-marker.ts +0 -7
- package/testing-library/node_modules/.bin/rsbuild +0 -55
- package/testing-library/node_modules/.bin/rspeedy +0 -55
- package/testing-library/node_modules/.bin/rstest +0 -55
- package/transform/node_modules/.bin/esbuild +0 -46
- package/transform/node_modules/.bin/napi +0 -55
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/appends-root-text-via-append-element/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/appends-root-text-via-append-element/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/creates-template-from-attrs-and-slot-text/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/creates-template-from-attrs-and-slot-text/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-template-children-in-the-same-slot/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-template-children-in-the-same-slot/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-text-nodes-in-the-same-slot/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-text-nodes-in-the-same-slot/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/inserts-nested-templates-into-parent-slots/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/inserts-nested-templates-into-parent-slots/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/keeps-slot-children-separated-and-ordered/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/keeps-slot-children-separated-and-ordered/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/passes-bundle-url-to-native-create/native-log.txt +0 -0
- /package/runtime/lib/{element-template/runtime-backend-marker.d.ts → core/capture-main-thread-object.d.ts} +0 -0
- /package/runtime/lib/{runtime-backend-marker.d.ts → core/main-thread-ref-id.d.ts} +0 -0
|
@@ -8,7 +8,7 @@ use swc_core::{
|
|
|
8
8
|
quote,
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
/// {@
|
|
11
|
+
/// {@inheritDoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.extractStr}
|
|
12
12
|
/// @public
|
|
13
13
|
#[derive(PartialEq, Serialize, Deserialize, Clone, Debug)]
|
|
14
14
|
#[serde(rename_all = "camelCase")]
|
|
@@ -2,345 +2,138 @@ $ node ./build.js
|
|
|
2
2
|
Blocking waiting for file lock on package cache
|
|
3
3
|
Blocking waiting for file lock on package cache
|
|
4
4
|
Blocking waiting for file lock on package cache
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Downloaded arrayvec v0.7.8
|
|
8
|
-
Downloaded browserslist-rs v0.20.0
|
|
9
|
-
Downloaded pathdiff v0.2.3
|
|
10
|
-
Downloaded precomputed-map v0.2.0
|
|
11
|
-
Downloaded preset_env_base v9.0.0
|
|
12
|
-
Downloaded radix_fmt v1.0.0
|
|
13
|
-
Downloaded cpufeatures v0.3.0
|
|
14
|
-
Downloaded path-clean v1.0.1
|
|
15
|
-
Downloaded crypto-common v0.2.2
|
|
16
|
-
Downloaded sha1 v0.10.7
|
|
17
|
-
Downloaded st-map v0.2.4
|
|
18
|
-
Downloaded static-map-macro v0.3.4
|
|
19
|
-
Downloaded swc_config v6.0.0
|
|
20
|
-
Downloaded swc_config_macro v1.0.1
|
|
21
|
-
Downloaded swc_ecma_compat_common v45.0.0
|
|
22
|
-
Downloaded swc_ecma_compat_es2017 v50.0.0
|
|
23
|
-
Downloaded swc_ecma_compat_es2018 v51.0.0
|
|
24
|
-
Downloaded swc_ecma_compat_es2019 v50.0.0
|
|
25
|
-
Downloaded swc_ecma_compat_es2020 v53.0.0
|
|
26
|
-
Downloaded swc_ecma_compat_es2021 v50.0.0
|
|
27
|
-
Downloaded swc_ecma_compat_regexp v9.0.0
|
|
28
|
-
Downloaded swc_ecma_ext_transforms v35.0.0
|
|
29
|
-
Downloaded swc_ecma_regexp_ast v3.0.0
|
|
30
|
-
Downloaded swc_ecma_regexp_common v0.0.1
|
|
31
|
-
Downloaded swc_ecma_transforms_macros v1.0.1
|
|
32
|
-
Downloaded swc_node_comments v27.0.0
|
|
33
|
-
Downloaded digest v0.11.3
|
|
34
|
-
Downloaded foldhash v0.1.5
|
|
35
|
-
Downloaded foldhash v0.2.0
|
|
36
|
-
Downloaded globset v0.4.19
|
|
37
|
-
Downloaded lru v0.18.4
|
|
38
|
-
Downloaded swc_ecma_transforms_classes v49.0.0
|
|
39
|
-
Downloaded fixedbitset v0.5.7
|
|
40
|
-
Downloaded swc_compiler_base v64.0.0
|
|
41
|
-
Downloaded swc_ecma_compat_bugfixes v56.0.0
|
|
42
|
-
Downloaded swc_ecma_compat_es2016 v50.0.0
|
|
43
|
-
Downloaded swc_ecma_loader v27.0.0
|
|
44
|
-
Downloaded swc_ecma_transforms_compat v57.0.1
|
|
45
|
-
Downloaded crossbeam-utils v0.8.22
|
|
46
|
-
Downloaded dashmap v6.2.1
|
|
47
|
-
Downloaded hybrid-array v0.4.13
|
|
48
|
-
Downloaded iana-time-zone v0.1.65
|
|
49
|
-
Downloaded sha2 v0.11.0
|
|
50
|
-
Downloaded swc_ecma_regexp v0.15.0
|
|
51
|
-
Downloaded swc_ecma_regexp_visit v0.15.0
|
|
52
|
-
Downloaded swc_ecma_transforms v62.0.0
|
|
53
|
-
Downloaded swc_ecma_transforms_proposal v49.0.0
|
|
54
|
-
Downloaded swc_ecma_transforms_react v55.0.1
|
|
55
|
-
Downloaded swc_ecma_transforms_typescript v55.0.1
|
|
56
|
-
Downloaded const-oid v0.10.2
|
|
57
|
-
Downloaded getrandom v0.3.4
|
|
58
|
-
Downloaded ryu-js v1.0.3
|
|
59
|
-
Downloaded swc_ecma_compat_es2022 v53.0.0
|
|
60
|
-
Downloaded swc_ecma_transformer v21.0.1
|
|
61
|
-
Downloaded jsonc-parser v0.26.3
|
|
62
|
-
Downloaded swc v75.0.1
|
|
63
|
-
Downloaded swc_ecma_compat_es2015 v55.0.0
|
|
64
|
-
Downloaded swc_ecma_transforms_optimization v52.0.0
|
|
65
|
-
Downloaded swc_ecma_hooks v1.0.0
|
|
66
|
-
Downloaded swc_ecma_preset_env v63.0.0
|
|
67
|
-
Downloaded hashbrown v0.16.1
|
|
68
|
-
Downloaded itertools v0.15.0
|
|
69
|
-
Downloaded par-iter v2.0.0
|
|
70
|
-
Downloaded browserslist-data v0.2.0
|
|
71
|
-
Downloaded nom v8.0.0
|
|
72
|
-
Downloaded chrono v0.4.45
|
|
73
|
-
Downloaded swc_ecma_minifier v61.0.4
|
|
74
|
-
Downloaded bstr v1.13.0
|
|
75
|
-
Downloaded regress v0.11.1
|
|
76
|
-
Downloaded petgraph v0.7.1
|
|
77
|
-
Compiling proc-macro2 v1.0.107
|
|
78
|
-
Compiling unicode-ident v1.0.24
|
|
79
|
-
Compiling quote v1.0.47
|
|
80
|
-
Compiling version_check v0.9.5
|
|
81
|
-
Compiling serde_core v1.0.229
|
|
82
|
-
Compiling cfg-if v1.0.4
|
|
83
|
-
Compiling zerocopy v0.8.55
|
|
84
|
-
Compiling serde v1.0.229
|
|
85
|
-
Compiling allocator-api2 v0.2.21
|
|
86
|
-
Compiling once_cell v1.21.4
|
|
87
|
-
Compiling stable_deref_trait v1.2.1
|
|
88
|
-
Compiling icu_normalizer_data v2.2.0
|
|
89
|
-
Compiling icu_properties_data v2.2.0
|
|
90
|
-
Compiling autocfg v1.5.1
|
|
91
|
-
Compiling syn v2.0.119
|
|
92
|
-
Compiling syn v3.0.3
|
|
93
|
-
Compiling num-traits v0.2.19
|
|
94
|
-
Compiling memchr v2.8.3
|
|
95
|
-
Compiling zmij v1.0.23
|
|
5
|
+
Blocking waiting for file lock on package cache
|
|
6
|
+
Blocking waiting for file lock on build directory
|
|
96
7
|
Compiling foldhash v0.2.0
|
|
97
|
-
Compiling
|
|
98
|
-
Compiling equivalent v1.0.2
|
|
8
|
+
Compiling zerovec v0.11.6
|
|
99
9
|
Compiling getrandom v0.3.4
|
|
100
|
-
Compiling smallvec v1.15.2
|
|
101
10
|
Compiling ahash v0.8.12
|
|
102
11
|
Compiling hashbrown v0.17.1
|
|
103
|
-
Compiling
|
|
104
|
-
Compiling
|
|
105
|
-
Compiling writeable v0.6.3
|
|
106
|
-
Compiling synstructure v0.13.2
|
|
107
|
-
Compiling swc_macros_common v1.0.1
|
|
108
|
-
Compiling indexmap v2.14.0
|
|
109
|
-
Compiling serde_json v1.0.151
|
|
110
|
-
Compiling utf8_iter v1.0.4
|
|
111
|
-
Compiling itoa v1.0.18
|
|
112
|
-
Compiling zerofrom-derive v0.1.7
|
|
113
|
-
Compiling yoke-derive v0.8.2
|
|
114
|
-
Compiling zerovec-derive v0.11.3
|
|
115
|
-
Compiling displaydoc v0.2.6
|
|
116
|
-
Compiling zerofrom v0.1.8
|
|
117
|
-
Compiling tracing-attributes v0.1.31
|
|
118
|
-
Compiling yoke v0.8.3
|
|
119
|
-
Compiling zerovec v0.11.6
|
|
120
|
-
Compiling zerotrie v0.2.4
|
|
12
|
+
Compiling either v1.17.0
|
|
13
|
+
Compiling swc_visit v2.0.2
|
|
121
14
|
Compiling hashbrown v0.14.5
|
|
122
|
-
Compiling
|
|
15
|
+
Compiling aho-corasick v1.1.4
|
|
16
|
+
Compiling indexmap v2.14.0
|
|
123
17
|
Compiling tinystr v0.8.3
|
|
124
18
|
Compiling potential_utf v0.1.5
|
|
125
|
-
Compiling icu_collections v2.2.0
|
|
126
|
-
Compiling rustc-hash v2.1.3
|
|
127
19
|
Compiling icu_locale_core v2.2.0
|
|
128
|
-
Compiling
|
|
129
|
-
Compiling
|
|
130
|
-
Compiling scopeguard v1.2.0
|
|
131
|
-
Compiling either v1.17.0
|
|
132
|
-
Compiling lock_api v0.4.14
|
|
133
|
-
Compiling ast_node v7.0.0
|
|
134
|
-
Compiling icu_provider v2.2.0
|
|
135
|
-
Compiling icu_properties v2.2.0
|
|
136
|
-
Compiling icu_normalizer v2.2.0
|
|
137
|
-
Compiling swc_eq_ignore_macros v1.0.1
|
|
138
|
-
Compiling tracing-core v0.1.36
|
|
139
|
-
Compiling percent-encoding v2.3.2
|
|
140
|
-
Compiling tap v1.0.1
|
|
141
|
-
Compiling wyz v0.5.1
|
|
142
|
-
Compiling form_urlencoded v1.2.2
|
|
143
|
-
Compiling idna_adapter v1.2.2
|
|
144
|
-
Compiling idna v1.1.0
|
|
145
|
-
Compiling funty v2.0.0
|
|
146
|
-
Compiling pin-project-lite v0.2.17
|
|
147
|
-
Compiling outref v0.5.2
|
|
148
|
-
Compiling vsimd v0.8.0
|
|
149
|
-
Compiling uuid v1.24.0
|
|
150
|
-
Compiling bytes v1.12.1
|
|
151
|
-
Compiling debugid v0.8.0
|
|
152
|
-
Compiling base64-simd v0.8.0
|
|
153
|
-
Compiling bytes-str v0.2.8
|
|
154
|
-
Compiling bitvec v1.1.1
|
|
155
|
-
Compiling url v2.5.8
|
|
156
|
-
Compiling tracing v0.1.44
|
|
157
|
-
Compiling triomphe v0.1.16
|
|
158
|
-
Compiling new_debug_unreachable v1.0.6
|
|
159
|
-
Compiling unicode-width v0.2.2
|
|
160
|
-
Compiling unicode-id-start v1.4.0
|
|
161
|
-
Compiling if_chain v1.0.3
|
|
162
|
-
Compiling data-encoding v2.11.0
|
|
20
|
+
Compiling icu_collections v2.2.0
|
|
21
|
+
Compiling serde_json v1.0.151
|
|
163
22
|
Compiling hstr v4.0.0
|
|
164
|
-
Compiling
|
|
165
|
-
Compiling cbor4ii v1.2.2
|
|
166
|
-
Compiling scoped-tls v1.0.1
|
|
167
|
-
Compiling better_scoped_tls v1.0.1
|
|
168
|
-
Compiling num-bigint v0.4.8
|
|
169
|
-
Compiling swc_sourcemap v10.0.2
|
|
23
|
+
Compiling icu_provider v2.2.0
|
|
170
24
|
Compiling swc_atoms v10.0.0
|
|
171
|
-
Compiling
|
|
172
|
-
Compiling
|
|
173
|
-
Compiling
|
|
174
|
-
Compiling termcolor v1.4.1
|
|
175
|
-
Compiling rand_core v0.6.4
|
|
176
|
-
Compiling siphasher v1.0.3
|
|
177
|
-
Compiling rand v0.8.7
|
|
178
|
-
Compiling phf_shared v0.11.3
|
|
179
|
-
Compiling swc_common v26.0.0
|
|
180
|
-
Compiling heck v0.5.0
|
|
181
|
-
Compiling is-macro v0.3.7
|
|
182
|
-
Compiling phf_generator v0.11.3
|
|
183
|
-
Compiling phf_macros v0.11.3
|
|
184
|
-
Compiling bitflags v2.13.1
|
|
185
|
-
Compiling string_enum v1.0.2
|
|
186
|
-
Compiling rustversion v1.0.23
|
|
187
|
-
Compiling phf v0.11.3
|
|
188
|
-
Compiling libc v0.2.189
|
|
189
|
-
Compiling dragonbox_ecma v0.1.12
|
|
190
|
-
Compiling swc_ecma_ast v29.0.0
|
|
191
|
-
Compiling par-core v2.0.0
|
|
192
|
-
Compiling castaway v0.2.4
|
|
193
|
-
Compiling num_cpus v1.17.0
|
|
194
|
-
Compiling ryu v1.0.23
|
|
195
|
-
Compiling static_assertions v1.1.0
|
|
196
|
-
Compiling seq-macro v0.3.6
|
|
197
|
-
Compiling compact_str v0.7.1
|
|
198
|
-
Compiling aho-corasick v1.1.4
|
|
199
|
-
Compiling regex-syntax v0.8.11
|
|
25
|
+
Compiling regex-automata v0.4.16
|
|
26
|
+
Compiling icu_normalizer v2.2.0
|
|
27
|
+
Compiling icu_properties v2.2.0
|
|
200
28
|
Compiling swc_ecma_regexp_common v0.0.1
|
|
201
29
|
Compiling typenum v1.20.1
|
|
202
|
-
Compiling swc_ecma_regexp_ast v3.0.0
|
|
203
|
-
Compiling regex-automata v0.4.16
|
|
204
30
|
Compiling crossbeam-utils v0.8.22
|
|
205
|
-
Compiling
|
|
31
|
+
Compiling idna_adapter v1.2.2
|
|
32
|
+
Compiling idna v1.1.0
|
|
206
33
|
Compiling dashmap v6.2.1
|
|
207
|
-
Compiling swc_ecma_regexp v0.15.0
|
|
208
|
-
Compiling swc_ecma_visit v29.0.0
|
|
209
|
-
Compiling swc_ecma_parser v45.1.1
|
|
210
|
-
Compiling regex v1.13.1
|
|
211
|
-
Compiling swc_ecma_compat_regexp v9.0.0
|
|
212
34
|
Compiling generic-array v0.14.7
|
|
35
|
+
Compiling url v2.5.8
|
|
213
36
|
Compiling hashbrown v0.16.1
|
|
37
|
+
Compiling swc_sourcemap v10.0.2
|
|
214
38
|
Compiling bstr v1.13.0
|
|
39
|
+
Compiling regex v1.13.1
|
|
215
40
|
Compiling globset v0.4.19
|
|
41
|
+
Compiling swc_common v26.0.0
|
|
216
42
|
Compiling regress v0.11.1
|
|
217
|
-
Compiling
|
|
43
|
+
Compiling swc_ecma_ast v29.0.0
|
|
44
|
+
Compiling swc_ecma_regexp_ast v3.0.0
|
|
218
45
|
Compiling block-buffer v0.10.4
|
|
46
|
+
Compiling crypto-common v0.1.7
|
|
219
47
|
Compiling swc_config_macro v1.0.1
|
|
220
|
-
Compiling swc_config v6.0.0
|
|
221
|
-
Compiling swc_ecma_utils v35.0.0
|
|
222
|
-
Compiling swc_ecma_hooks v1.0.0
|
|
223
48
|
Compiling digest v0.10.7
|
|
224
|
-
Compiling
|
|
225
|
-
Compiling thiserror v1.0.69
|
|
226
|
-
Compiling swc_ecma_transformer v21.0.1
|
|
49
|
+
Compiling swc_config v6.0.0
|
|
227
50
|
Compiling arrayvec v0.7.8
|
|
228
|
-
Compiling
|
|
229
|
-
Compiling thiserror-impl v1.0.69
|
|
51
|
+
Compiling swc_ecma_regexp_visit v0.15.0
|
|
230
52
|
Compiling swc_ecma_transforms_macros v1.0.1
|
|
231
|
-
Compiling owo-colors v4.3.0
|
|
232
|
-
Compiling semver v1.0.28
|
|
233
53
|
Compiling fixedbitset v0.5.7
|
|
234
|
-
Compiling
|
|
235
|
-
Compiling
|
|
236
|
-
Compiling textwrap v0.16.2
|
|
54
|
+
Compiling swc_ecma_regexp v0.15.0
|
|
55
|
+
Compiling swc_ecma_compat_regexp v9.0.0
|
|
237
56
|
Compiling petgraph v0.7.1
|
|
238
|
-
Compiling
|
|
239
|
-
Compiling miette-derive v7.6.0
|
|
240
|
-
Compiling bumpalo v3.20.3
|
|
241
|
-
Compiling camino v1.2.4
|
|
242
|
-
Compiling unicode-width v0.1.14
|
|
57
|
+
Compiling zmij v1.0.23
|
|
243
58
|
Compiling swc_allocator v5.0.0
|
|
244
|
-
Compiling miette v7.6.0
|
|
245
|
-
Compiling swc_ecma_transforms_optimization v52.0.0
|
|
246
|
-
Compiling swc_ecma_compat_es2015 v55.0.0
|
|
247
|
-
Compiling swc_ecma_compat_es2022 v53.0.0
|
|
248
59
|
Compiling sha1 v0.10.7
|
|
249
60
|
Compiling chrono v0.4.45
|
|
250
|
-
Compiling swc_ecma_codegen_macros v2.0.2
|
|
251
|
-
Compiling ascii v1.1.0
|
|
252
|
-
Compiling lazy_static v1.5.0
|
|
253
|
-
Compiling log v0.4.33
|
|
254
|
-
Compiling tracing-log v0.2.0
|
|
255
|
-
Compiling sharded-slab v0.1.7
|
|
256
|
-
Compiling swc_ecma_codegen v32.0.0
|
|
257
61
|
Compiling browserslist-data v0.2.0
|
|
258
|
-
Compiling swc_ecma_transforms_react v55.0.1
|
|
259
|
-
Compiling swc_ecma_compat_es2020 v53.0.0
|
|
260
|
-
Compiling swc_ecma_compat_bugfixes v56.0.0
|
|
261
62
|
Compiling swc_error_reporters v28.0.0
|
|
262
|
-
Compiling swc_ecma_compat_es2021 v50.0.0
|
|
263
|
-
Compiling swc_ecma_compat_es2016 v50.0.0
|
|
264
|
-
Compiling swc_ecma_compat_es2019 v50.0.0
|
|
265
|
-
Compiling swc_ecma_compat_es2018 v51.0.0
|
|
266
|
-
Compiling swc_ecma_compat_es2017 v50.0.0
|
|
267
63
|
Compiling matchers v0.2.0
|
|
268
64
|
Compiling itertools v0.15.0
|
|
269
|
-
Compiling cargo-platform v0.1.9
|
|
270
|
-
Compiling static-map-macro v0.3.4
|
|
271
65
|
Compiling nom v8.0.0
|
|
272
|
-
Compiling
|
|
273
|
-
Compiling rustix v1.1.4
|
|
274
|
-
Compiling precomputed-map v0.2.0
|
|
275
|
-
Compiling getrandom v0.4.3
|
|
276
|
-
Compiling glob v0.3.4
|
|
277
|
-
Compiling relative-path v1.9.3
|
|
278
|
-
Compiling yansi v1.0.1
|
|
66
|
+
Compiling static-map-macro v0.3.4
|
|
279
67
|
Compiling foldhash v0.1.5
|
|
280
|
-
Compiling
|
|
281
|
-
Compiling diff v0.1.13
|
|
282
|
-
Compiling pretty_assertions v1.4.1
|
|
283
|
-
Compiling tracing-subscriber v0.3.23
|
|
68
|
+
Compiling precomputed-map v0.2.0
|
|
284
69
|
Compiling swc_ecma_preset_env v63.0.0
|
|
70
|
+
Compiling swc_ecma_visit v29.0.0
|
|
71
|
+
Compiling swc_ecma_parser v45.1.1
|
|
72
|
+
Compiling tracing-subscriber v0.3.23
|
|
285
73
|
Compiling browserslist-rs v0.20.0
|
|
286
|
-
Compiling testing_macros v1.0.2
|
|
287
74
|
Compiling st-map v0.2.4
|
|
288
75
|
Compiling cargo_metadata v0.18.1
|
|
289
|
-
Compiling swc_ecma_transforms_compat v57.0.1
|
|
290
|
-
Compiling swc_ecma_transforms_typescript v55.0.1
|
|
291
|
-
Compiling swc_ecma_transforms_proposal v49.0.0
|
|
292
76
|
Compiling par-iter v2.0.0
|
|
293
|
-
Compiling errno v0.3.14
|
|
294
77
|
Compiling ryu-js v1.0.3
|
|
295
|
-
Compiling pathdiff v0.2.3
|
|
296
|
-
Compiling difference v2.0.0
|
|
297
78
|
Compiling radix_fmt v1.0.0
|
|
298
|
-
Compiling
|
|
79
|
+
Compiling pathdiff v0.2.3
|
|
299
80
|
Compiling testing v27.0.0
|
|
300
|
-
Compiling swc_ecma_transforms v62.0.0
|
|
301
81
|
Compiling preset_env_base v9.0.0
|
|
302
82
|
Compiling sha2 v0.10.9
|
|
303
83
|
Compiling lru v0.18.4
|
|
304
|
-
Compiling hex v0.4.3
|
|
305
84
|
Compiling path-clean v1.0.1
|
|
306
|
-
Compiling fastrand v2.5.0
|
|
307
|
-
Compiling tempfile v3.27.0
|
|
308
|
-
Compiling swc_ecma_loader v27.0.0
|
|
309
85
|
Compiling swc_ecma_testing v27.0.0
|
|
310
|
-
Compiling
|
|
86
|
+
Compiling swc_ecma_loader v27.0.0
|
|
87
|
+
Compiling swc_ecma_utils v35.0.0
|
|
88
|
+
Compiling swc_ecma_hooks v1.0.0
|
|
89
|
+
Compiling swc_ecma_transforms_base v49.0.1
|
|
90
|
+
Compiling swc_ecma_codegen v32.0.0
|
|
91
|
+
Compiling swc_ecma_transformer v21.0.1
|
|
92
|
+
Compiling swc_ecma_transforms_classes v49.0.0
|
|
93
|
+
Compiling swc_ecma_transforms_optimization v52.0.0
|
|
94
|
+
Compiling swc_ecma_compat_common v45.0.0
|
|
95
|
+
Compiling swc_ecma_compat_es2015 v55.0.0
|
|
96
|
+
Compiling swc_ecma_compat_es2022 v53.0.0
|
|
97
|
+
Compiling swc_ecma_compat_bugfixes v56.0.0
|
|
98
|
+
Compiling swc_ecma_compat_es2020 v53.0.0
|
|
99
|
+
Compiling swc_ecma_compat_es2016 v50.0.0
|
|
100
|
+
Compiling swc_ecma_compat_es2019 v50.0.0
|
|
101
|
+
Compiling swc_ecma_compat_es2018 v51.0.0
|
|
102
|
+
Compiling swc_ecma_compat_es2021 v50.0.0
|
|
103
|
+
Compiling swc_ecma_compat_es2017 v50.0.0
|
|
104
|
+
Compiling swc_ecma_transforms_react v55.0.1
|
|
105
|
+
Compiling swc_ecma_transforms_compat v57.0.1
|
|
106
|
+
Compiling swc_ecma_transforms_typescript v55.0.1
|
|
107
|
+
Compiling swc_ecma_transforms_proposal v49.0.0
|
|
108
|
+
Compiling swc_ecma_minifier v61.0.4
|
|
109
|
+
Compiling swc_ecma_transforms v62.0.0
|
|
311
110
|
Compiling swc_ecma_ext_transforms v35.0.0
|
|
111
|
+
Compiling swc_compiler_base v64.0.0
|
|
312
112
|
Compiling swc_node_comments v27.0.0
|
|
313
113
|
Compiling swc_transform_common v20.0.0
|
|
314
114
|
Compiling jsonc-parser v0.26.3
|
|
315
|
-
Compiling ansi_term v0.12.1
|
|
316
115
|
Compiling swc_core v77.1.2
|
|
317
116
|
Compiling swc_ecma_transforms_testing v53.0.0
|
|
318
117
|
Compiling swc v75.0.1
|
|
319
|
-
Compiling swc_ecma_quote_macros v45.0.1
|
|
320
118
|
Compiling swc_plugin_proxy v30.0.0
|
|
321
|
-
Compiling swc_plugin_macro v2.0.0
|
|
322
|
-
Compiling swc_plugin v1.0.1
|
|
323
|
-
Compiling unicode-segmentation v1.13.3
|
|
324
|
-
Compiling convert_case v0.11.0
|
|
325
119
|
Compiling sha-1 v0.10.1
|
|
326
|
-
Compiling sugar_path v1.2.1
|
|
327
|
-
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
328
120
|
Compiling hybrid-array v0.4.13
|
|
329
121
|
Compiling block-buffer v0.12.1
|
|
330
122
|
Compiling crypto-common v0.2.2
|
|
123
|
+
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
331
124
|
Compiling const-oid v0.10.2
|
|
332
125
|
Compiling digest v0.11.3
|
|
333
126
|
Compiling sha2 v0.11.0
|
|
334
127
|
Compiling swc_plugin_define_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_define_dce)
|
|
335
128
|
Compiling swc_plugin_directive_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_directive_dce)
|
|
336
129
|
Compiling swc_plugin_element_template v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_element_template)
|
|
130
|
+
Compiling swc_plugin_text v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_text)
|
|
337
131
|
Compiling swc_plugin_list v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_list)
|
|
338
132
|
Compiling swc_plugin_dynamic_import v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_dynamic_import)
|
|
339
|
-
Compiling swc_plugin_text v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_text)
|
|
340
|
-
Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
|
|
341
|
-
Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
|
|
342
133
|
Compiling swc_plugin_snapshot v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_snapshot)
|
|
134
|
+
Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
|
|
343
135
|
Compiling swc_plugin_css_scope v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_css_scope)
|
|
344
136
|
Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
|
|
137
|
+
Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
|
|
345
138
|
Compiling swc_plugin_reactlynx v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx)
|
|
346
|
-
Finished `release` profile [optimized] target(s) in
|
|
139
|
+
Finished `release` profile [optimized] target(s) in 3m 35s
|
|
@@ -46,7 +46,7 @@ export interface ElementTemplateConfig {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* {@
|
|
49
|
+
* {@inheritDoc PluginReactLynxOptions.shake}
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
52
|
export interface ShakeVisitorConfig {
|
|
@@ -161,7 +161,7 @@ export interface ShakeVisitorConfig {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* {@
|
|
164
|
+
* {@inheritDoc PluginReactLynxOptions.defineDCE}
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
167
167
|
export interface DefineDceVisitorConfig {
|
|
Binary file
|