@lynx-js/react 0.127.0 → 0.128.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 +18 -0
- package/components/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -14
- package/refresh/.turbo/turbo-build.log +1 -1
- package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +1 -1
- package/runtime/__test__/element-template/runtime/background/event/compiled-fixtures.test.tsx +39 -48
- package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +7 -9
- package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +6 -3
- package/runtime/__test__/element-template/test-utils/mock/globals.js +6 -0
- package/runtime/__test__/element-template/vitest.config.ts +4 -0
- package/runtime/__test__/worklet-runtime/initEntry.test.js +109 -0
- package/runtime/__test__/worklet-runtime/object-methods.test.js +2 -3
- package/runtime/lazy/element-template-internal.js +0 -1
- package/runtime/lazy/internal.js +0 -1
- package/runtime/lib/core/background-function/exec-map.js.map +1 -1
- package/runtime/lib/core/background-function/handle.js.map +1 -1
- package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
- package/runtime/lib/core/capture-main-thread-object.js.map +1 -1
- package/runtime/lib/core/commit-context.js.map +1 -1
- package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -1
- package/runtime/lib/core/compat/lynxComponent.js.map +1 -1
- package/runtime/lib/core/component.js.map +1 -1
- package/runtime/lib/core/forceRootRender.js.map +1 -1
- package/runtime/lib/core/globalProps.js.map +1 -1
- package/runtime/lib/core/hooks/mainThread.js.map +1 -1
- package/runtime/lib/core/hooks/mainThreadImpl.js.map +1 -1
- package/runtime/lib/core/hooks/react.js.map +1 -1
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js.map +1 -1
- package/runtime/lib/core/initData.js.map +1 -1
- package/runtime/lib/core/lynx/dynamic-import.js.map +1 -1
- package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -1
- package/runtime/lib/core/lynx/runtime-backend.js.map +1 -1
- package/runtime/lib/core/lynx/runtime-version.js.map +1 -1
- package/runtime/lib/core/lynx-data-processors.js.map +1 -1
- package/runtime/lib/core/lynx-page-data.js.map +1 -1
- package/runtime/lib/core/lynx-update-data.js.map +1 -1
- package/runtime/lib/core/main-thread-function.js.map +1 -1
- package/runtime/lib/core/main-thread-object-handle-registry.js.map +1 -1
- package/runtime/lib/core/main-thread-object.js +1 -4
- package/runtime/lib/core/main-thread-object.js.map +1 -1
- package/runtime/lib/core/main-thread-ref-id.js.map +1 -1
- package/runtime/lib/core/main-thread-ref-init-value.js.map +1 -1
- package/runtime/lib/core/main-thread-ref.js.map +1 -1
- package/runtime/lib/core/mts-capability.js.map +1 -1
- package/runtime/lib/core/performance.js.map +1 -1
- package/runtime/lib/core/ref.js.map +1 -1
- package/runtime/lib/core/reload-version.js.map +1 -1
- package/runtime/lib/core/runtime-destroy.js.map +1 -1
- package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -1
- package/runtime/lib/core/thread-function-call/return-value.js.map +1 -1
- package/runtime/lib/document.js.map +1 -1
- package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
- package/runtime/lib/element-template/background/commit-context.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/background/destroy.js.map +1 -1
- package/runtime/lib/element-template/background/document.js.map +1 -1
- package/runtime/lib/element-template/background/hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
- package/runtime/lib/element-template/background/instance.js.map +1 -1
- package/runtime/lib/element-template/background/manager.js.map +1 -1
- package/runtime/lib/element-template/background/page-root-hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/render-scope.js.map +1 -1
- package/runtime/lib/element-template/client/root.js.map +1 -1
- package/runtime/lib/element-template/debug/alog.js.map +1 -1
- package/runtime/lib/element-template/debug/elementPAPICall.js.map +1 -1
- package/runtime/lib/element-template/debug/profile.js.map +1 -1
- package/runtime/lib/element-template/hydration-map.js.map +1 -1
- package/runtime/lib/element-template/index.js.map +1 -1
- package/runtime/lib/element-template/internal.d.ts +0 -1
- package/runtime/lib/element-template/internal.js +0 -1
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/jsx-dev-runtime/index.js.map +1 -1
- package/runtime/lib/element-template/jsx-runtime/index.js.map +1 -1
- package/runtime/lib/element-template/lynx/env.js.map +1 -1
- package/runtime/lib/element-template/lynx/performance.js.map +1 -1
- package/runtime/lib/element-template/native/callDestroyLifetimeFun.js.map +1 -1
- package/runtime/lib/element-template/native/index.js.map +1 -1
- package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
- package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
- package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
- package/runtime/lib/element-template/native/reload-background.js.map +1 -1
- package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/event-value.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/event.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/ref.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
- package/runtime/lib/element-template/protocol/lifecycle-constant.js.map +1 -1
- package/runtime/lib/element-template/protocol/opcodes.js.map +1 -1
- package/runtime/lib/element-template/protocol/page.js.map +1 -1
- package/runtime/lib/element-template/protocol/template-type.js.map +1 -1
- package/runtime/lib/element-template/protocol/types.js.map +1 -1
- package/runtime/lib/element-template/protocol/update-event.js.map +1 -1
- package/runtime/lib/element-template/runtime/list/list.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/authored-page.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/page.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/root-instance.js.map +1 -1
- package/runtime/lib/element-template/runtime/patch.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/host.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-direct.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/handle.js.map +1 -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.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-function.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/registry.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/typed-attributes.js.map +1 -1
- package/runtime/lib/element-template/runtime-marker.js.map +1 -1
- package/runtime/lib/index.js.map +1 -1
- package/runtime/lib/internal.d.ts +0 -1
- package/runtime/lib/internal.js +0 -1
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/lynx.js.map +1 -1
- package/runtime/lib/root.js.map +1 -1
- package/runtime/lib/runtime-marker.js.map +1 -1
- package/runtime/lib/shared/attribute-name.js.map +1 -1
- package/runtime/lib/shared/component-stack.js.map +1 -1
- package/runtime/lib/shared/index-map.js.map +1 -1
- package/runtime/lib/shared/profile.js.map +1 -1
- package/runtime/lib/shared/render-constants.js.map +1 -1
- package/runtime/lib/snapshot/alog/elementPAPICall.js.map +1 -1
- package/runtime/lib/snapshot/alog/index.js.map +1 -1
- package/runtime/lib/snapshot/alog/render.js.map +1 -1
- package/runtime/lib/snapshot/compat/componentIs.js.map +1 -1
- package/runtime/lib/snapshot/debug/debug.js.map +1 -1
- package/runtime/lib/snapshot/debug/describeInvalidValue.js.map +1 -1
- package/runtime/lib/snapshot/debug/formatPatch.js.map +1 -1
- package/runtime/lib/snapshot/debug/printSnapshot.js.map +1 -1
- package/runtime/lib/snapshot/debug/profileHooks.js.map +1 -1
- package/runtime/lib/snapshot/debug/vnodeSource.js.map +1 -1
- package/runtime/lib/snapshot/gesture/processGesture.js.map +1 -1
- package/runtime/lib/snapshot/gesture/processGestureBagkround.js.map +1 -1
- package/runtime/lib/snapshot/gesture/types.js.map +1 -1
- package/runtime/lib/snapshot/index.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/constant.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/destroy.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/event/delayEvents.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/event/delayLifecycleEvents.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/event/firstScreenSync.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/isRendering.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/commit.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/globalState.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/isMainThreadHydrating.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/nodesRefApply.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/ref/delay.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/render.js.map +1 -1
- package/runtime/lib/snapshot/list/list.js.map +1 -1
- package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
- package/runtime/lib/snapshot/list/pendingListUpdates.js.map +1 -1
- package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
- package/runtime/lib/snapshot/lynx/children.js.map +1 -1
- package/runtime/lib/snapshot/lynx/element.js.map +1 -1
- package/runtime/lib/snapshot/lynx/env.js.map +1 -1
- package/runtime/lib/snapshot/lynx/injectLepusMethods.js.map +1 -1
- package/runtime/lib/snapshot/lynx/lazyBundleConstants.js.map +1 -1
- package/runtime/lib/snapshot/lynx/nodesRef.js.map +1 -1
- package/runtime/lib/snapshot/lynx/performance.js.map +1 -1
- package/runtime/lib/snapshot/lynx/portals.js.map +1 -1
- package/runtime/lib/snapshot/lynx/portalsPending.js.map +1 -1
- package/runtime/lib/snapshot/lynx/prepareLazyBundleMTS.js.map +1 -1
- package/runtime/lib/snapshot/lynx/runWithForce.js.map +1 -1
- package/runtime/lib/snapshot/lynx/suspense.js.map +1 -1
- package/runtime/lib/snapshot/lynx/tt.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/index.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/constants.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/definition.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/dynamicPartType.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/event.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/gesture.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/index.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/list.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/platformInfo.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/reconstructInstanceTree.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/ref.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotCreatorMap.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotInstanceHydrationMap.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotInstanceManager.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/spread.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/types.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/utils.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/workletEvent.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/workletRef.js.map +1 -1
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
- package/runtime/lib/snapshot/worklet/ctx.js.map +1 -1
- package/runtime/lib/snapshot/worklet/destroy.js.map +1 -1
- package/runtime/lib/snapshot/worklet/functionality.js.map +1 -1
- package/runtime/lib/snapshot/worklet/hmr.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/utils.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/animation/animation.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/animation/effect.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/element.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/lepusQuerySelector.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/lynxApi.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/events.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/index.d.ts +0 -1
- package/runtime/lib/worklet-runtime/bindings/index.js +0 -1
- package/runtime/lib/worklet-runtime/bindings/index.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/observers.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/types.js.map +1 -1
- package/runtime/lib/worklet-runtime/delayRunOnBackground.js.map +1 -1
- package/runtime/lib/worklet-runtime/delayWorkletEvent.js.map +1 -1
- package/runtime/lib/worklet-runtime/eomImpl.js.map +1 -1
- package/runtime/lib/worklet-runtime/eventPropagation.js.map +1 -1
- package/runtime/lib/worklet-runtime/global.js.map +1 -1
- package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
- package/runtime/lib/worklet-runtime/index.js +6 -0
- package/runtime/lib/worklet-runtime/index.js.map +1 -1
- package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
- package/runtime/lib/worklet-runtime/listeners.js.map +1 -1
- package/runtime/lib/worklet-runtime/mainThreadObject.js.map +1 -1
- package/runtime/lib/worklet-runtime/runOnMainThread.js.map +1 -1
- package/runtime/lib/worklet-runtime/utils/mainThreadFlushLoopGuard.js.map +1 -1
- package/runtime/lib/worklet-runtime/utils/profile.js.map +1 -1
- package/runtime/lib/worklet-runtime/utils/version.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRef.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/src/core/main-thread-object.ts +1 -8
- package/runtime/src/element-template/internal.ts +0 -1
- package/runtime/src/internal.ts +0 -1
- package/runtime/src/worklet-runtime/bindings/index.ts +0 -1
- package/runtime/src/worklet-runtime/index.ts +7 -0
- package/runtime/tsconfig.json +2 -0
- package/runtime/vitest.config.ts +4 -0
- package/testing-library/.turbo/turbo-build.log +11 -11
- package/testing-library/dist/env/index.js +3 -15
- package/testing-library/dist/plugins/index.js +10 -0
- package/testing-library/dist/rstest-config.js +15 -0
- package/testing-library/dist/setupFiles/common/worklet-runtime-init.js +11 -0
- package/testing-library/rstest.config.ts +3 -0
- package/testing-library/src/__tests__/rstest-config.test.js +34 -1
- package/testing-library/src/__tests__/worklet.test.jsx +41 -32
- package/testing-library/src/plugins/vitest.ts +5 -1
- package/testing-library/src/rstest-config.ts +17 -1
- package/testing-library/src/setupFiles/common/worklet-runtime-init.js +22 -0
- package/transform/.turbo/turbo-build$colon$wasm.log +113 -123
- package/transform/__test__/defines.spec.js +80 -12
- package/transform/__test__/fixture.spec.js +166 -48
- package/transform/__test__/object-methods.spec.js +1 -3
- package/transform/crates/swc_plugin_worklet/gen_stmt.rs +26 -10
- package/transform/crates/swc_plugin_worklet/lib.rs +132 -148
- package/transform/crates/swc_plugin_worklet/napi.rs +10 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +4 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_lepus.js +3 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_ident_from_this_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +4 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_3_lepus.js +3 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_4_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +4 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_computed_object_method_key_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_globals.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_object_method_local_decls_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_type_annotations.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_destructure_from_closure.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_extract_catch_clause_params.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_extract_idents_inside_of_ctx.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_transform_recursively.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +6 -6
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_skip_shared_identifiers_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_arrow_function.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_fn_decl_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_function_expr.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_property_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_static_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_static_property_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js_fn_in_run_on_js_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +4 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_alias.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_general.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_general_mixed.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_multiple_worklets.js +3 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_multiple_worklets_in_func.js +3 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_ui_worklet_lepus.js +2 -4
- package/transform/dist/wasm.cjs +1 -1
- package/transform/index.d.ts +25 -1
- package/transform/src/lib.rs +193 -23
- package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +30 -31
- package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +195 -217
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.d.ts +0 -8
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.js +0 -23
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.js.map +0 -1
- package/runtime/src/worklet-runtime/bindings/loadRuntime.ts +0 -25
- package/runtime/worklet-runtime/dev.js +0 -775
- package/runtime/worklet-runtime/main.js +0 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_add_worklet_runtime_ident_with_inner_ident.js +0 -13
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_add_worklet_runtime_ident_with_outer_ident.js +0 -13
package/transform/index.d.ts
CHANGED
|
@@ -676,6 +676,10 @@ export interface WorkletVisitorConfig {
|
|
|
676
676
|
filename: string
|
|
677
677
|
/** @internal */
|
|
678
678
|
target: 'LEPUS' | 'JS' | 'MIXED'
|
|
679
|
+
/**
|
|
680
|
+
* Module providing worklet helpers. The init entry uses this path with a
|
|
681
|
+
* trailing `/internal` removed, followed by `/worklet-runtime/init`.
|
|
682
|
+
*/
|
|
679
683
|
runtimePkg: string
|
|
680
684
|
}
|
|
681
685
|
/**
|
|
@@ -763,10 +767,17 @@ export interface TransformNodiffOutput {
|
|
|
763
767
|
/** @internal */
|
|
764
768
|
elementTemplates?: Array<ElementTemplateAsset>
|
|
765
769
|
/** @internal */
|
|
770
|
+
runtimeRequirements: TransformRuntimeRequirements
|
|
771
|
+
/** @internal */
|
|
766
772
|
definesForSnapshot?: Array<Define>
|
|
767
773
|
/** @internal */
|
|
768
774
|
definesForWorklet?: Array<Define>
|
|
769
775
|
}
|
|
776
|
+
/** @internal */
|
|
777
|
+
export interface TransformRuntimeRequirements {
|
|
778
|
+
/** @internal */
|
|
779
|
+
mainThreadProgrammability: boolean
|
|
780
|
+
}
|
|
770
781
|
/**
|
|
771
782
|
* @internal
|
|
772
783
|
* A snapshot or worklet definition collected from the module. The same
|
|
@@ -781,7 +792,7 @@ export interface Define {
|
|
|
781
792
|
id: string
|
|
782
793
|
/**
|
|
783
794
|
* @internal
|
|
784
|
-
* A
|
|
795
|
+
* A statement list registering the definition, using the bindings in imports.
|
|
785
796
|
*/
|
|
786
797
|
code: string
|
|
787
798
|
/**
|
|
@@ -791,6 +802,19 @@ export interface Define {
|
|
|
791
802
|
* the main thread lacks such a definition.
|
|
792
803
|
*/
|
|
793
804
|
unmergeable?: boolean
|
|
805
|
+
/** @internal Compiler requirements of the extracted registration. */
|
|
806
|
+
runtimeRequirements?: TransformRuntimeRequirements
|
|
807
|
+
/** @internal Compiler-owned named imports required by this definition. */
|
|
808
|
+
imports?: DefineImport[]
|
|
809
|
+
}
|
|
810
|
+
/** @internal */
|
|
811
|
+
export interface DefineImport {
|
|
812
|
+
/** @internal */
|
|
813
|
+
source: string
|
|
814
|
+
/** @internal */
|
|
815
|
+
imported: string
|
|
816
|
+
/** @internal */
|
|
817
|
+
local: string
|
|
794
818
|
}
|
|
795
819
|
/** @internal */
|
|
796
820
|
export interface ElementTemplateAsset {
|
package/transform/src/lib.rs
CHANGED
|
@@ -11,7 +11,11 @@ mod swc_plugin_refresh;
|
|
|
11
11
|
mod swc_plugin_transform_builtin_attribute_names;
|
|
12
12
|
mod swc_plugin_worklet_post_process;
|
|
13
13
|
|
|
14
|
-
use std::{
|
|
14
|
+
use std::{
|
|
15
|
+
cell::{Cell, RefCell},
|
|
16
|
+
rc::Rc,
|
|
17
|
+
vec,
|
|
18
|
+
};
|
|
15
19
|
|
|
16
20
|
use napi::{bindgen_prelude::AsyncTask, Either, Env, Task};
|
|
17
21
|
|
|
@@ -299,6 +303,29 @@ pub struct Define {
|
|
|
299
303
|
pub code: String,
|
|
300
304
|
/// @internal
|
|
301
305
|
pub unmergeable: Option<bool>,
|
|
306
|
+
/// @internal
|
|
307
|
+
pub runtime_requirements: Option<TransformRuntimeRequirements>,
|
|
308
|
+
/// Compiler-owned imports needed when this definition moves to another module.
|
|
309
|
+
/// @internal
|
|
310
|
+
pub imports: Option<Vec<DefineImport>>,
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/// @internal
|
|
314
|
+
#[napi(object)]
|
|
315
|
+
pub struct DefineImport {
|
|
316
|
+
/// @internal
|
|
317
|
+
pub source: String,
|
|
318
|
+
/// @internal
|
|
319
|
+
pub imported: String,
|
|
320
|
+
/// @internal
|
|
321
|
+
pub local: String,
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
#[napi(object)]
|
|
325
|
+
pub struct TransformRuntimeRequirements {
|
|
326
|
+
/// @internal
|
|
327
|
+
#[napi(js_name = "mainThreadProgrammability")]
|
|
328
|
+
pub main_thread_programmability: bool,
|
|
302
329
|
}
|
|
303
330
|
|
|
304
331
|
#[napi(object)]
|
|
@@ -315,6 +342,9 @@ pub struct TransformNodiffOutput {
|
|
|
315
342
|
#[napi(js_name = "elementTemplates")]
|
|
316
343
|
pub element_templates: Option<Vec<ElementTemplateAsset>>,
|
|
317
344
|
/// @internal
|
|
345
|
+
#[napi(js_name = "runtimeRequirements")]
|
|
346
|
+
pub runtime_requirements: TransformRuntimeRequirements,
|
|
347
|
+
/// @internal
|
|
318
348
|
#[napi(js_name = "definesForSnapshot")]
|
|
319
349
|
pub defines_for_snapshot: Option<Vec<Define>>,
|
|
320
350
|
/// @internal
|
|
@@ -322,13 +352,21 @@ pub struct TransformNodiffOutput {
|
|
|
322
352
|
pub defines_for_worklet: Option<Vec<Define>>,
|
|
323
353
|
}
|
|
324
354
|
|
|
355
|
+
fn transform_runtime_requirements(
|
|
356
|
+
main_thread_programmability: bool,
|
|
357
|
+
) -> TransformRuntimeRequirements {
|
|
358
|
+
TransformRuntimeRequirements {
|
|
359
|
+
main_thread_programmability,
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
325
363
|
fn print_define(
|
|
326
364
|
c: &Compiler,
|
|
327
365
|
items: Vec<ModuleItem>,
|
|
328
366
|
top_level_mark: Mark,
|
|
329
367
|
comments: &SingleThreadedComments,
|
|
330
|
-
) -> Result<String, String> {
|
|
331
|
-
let module = match Program::Module(Module {
|
|
368
|
+
) -> Result<(String, Vec<DefineImport>), String> {
|
|
369
|
+
let mut module = match Program::Module(Module {
|
|
332
370
|
span: DUMMY_SP,
|
|
333
371
|
body: items,
|
|
334
372
|
shebang: None,
|
|
@@ -344,6 +382,33 @@ fn print_define(
|
|
|
344
382
|
_ => return Err("hygiene produced a non-module program".into()),
|
|
345
383
|
};
|
|
346
384
|
|
|
385
|
+
// Print imports and statements through the same hygiene pass before
|
|
386
|
+
// separating them. The consumer must not guess bindings from generated code.
|
|
387
|
+
let mut imports = vec![];
|
|
388
|
+
let mut statements = vec![];
|
|
389
|
+
for item in module.body {
|
|
390
|
+
if let ModuleItem::ModuleDecl(ModuleDecl::Import(import)) = item {
|
|
391
|
+
for specifier in import.specifiers {
|
|
392
|
+
let ImportSpecifier::Named(named) = specifier else {
|
|
393
|
+
return Err("definition dependency must be a named import".into());
|
|
394
|
+
};
|
|
395
|
+
let imported = match named.imported {
|
|
396
|
+
Some(ModuleExportName::Ident(ident)) => ident.sym.to_string(),
|
|
397
|
+
Some(ModuleExportName::Str(value)) => value.value.to_string_lossy().into_owned(),
|
|
398
|
+
None => named.local.sym.to_string(),
|
|
399
|
+
};
|
|
400
|
+
imports.push(DefineImport {
|
|
401
|
+
source: import.src.value.to_string_lossy().into_owned(),
|
|
402
|
+
imported,
|
|
403
|
+
local: named.local.sym.to_string(),
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
} else {
|
|
407
|
+
statements.push(item);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
module.body = statements;
|
|
411
|
+
|
|
347
412
|
c.print(
|
|
348
413
|
&Program::Module(module),
|
|
349
414
|
PrintArgs {
|
|
@@ -367,7 +432,7 @@ fn print_define(
|
|
|
367
432
|
.with_ascii_only(false),
|
|
368
433
|
},
|
|
369
434
|
)
|
|
370
|
-
.map(|r| r.code)
|
|
435
|
+
.map(|r| (r.code, imports))
|
|
371
436
|
.map_err(|err| err.to_string())
|
|
372
437
|
}
|
|
373
438
|
|
|
@@ -449,6 +514,7 @@ fn transform_react_lynx_inner(
|
|
|
449
514
|
|
|
450
515
|
let snapshot_ui_source_map_records: Rc<RefCell<Vec<SnapshotCoreUISourceMapRecord>>> =
|
|
451
516
|
Rc::new(RefCell::new(vec![]));
|
|
517
|
+
let main_thread_programmability = Rc::new(Cell::new(false));
|
|
452
518
|
|
|
453
519
|
let result = GLOBALS.set(&Default::default(), || {
|
|
454
520
|
let program = c.parse_js(
|
|
@@ -469,6 +535,7 @@ fn transform_react_lynx_inner(
|
|
|
469
535
|
warnings: warnings.read().unwrap().clone(),
|
|
470
536
|
ui_source_map_records: vec![],
|
|
471
537
|
element_templates: None,
|
|
538
|
+
runtime_requirements: transform_runtime_requirements(main_thread_programmability.get()),
|
|
472
539
|
defines_for_snapshot: None,
|
|
473
540
|
defines_for_worklet: None,
|
|
474
541
|
};
|
|
@@ -799,7 +866,9 @@ fn transform_react_lynx_inner(
|
|
|
799
866
|
Either::A(config) => {
|
|
800
867
|
let visitor = WorkletVisitor::default().with_content_hash(content_hash);
|
|
801
868
|
let visitor =
|
|
802
|
-
visitor
|
|
869
|
+
visitor
|
|
870
|
+
.with_defines_collector(defines_collector.clone())
|
|
871
|
+
.with_main_thread_programmability(Rc::clone(&main_thread_programmability));
|
|
803
872
|
Optional::new(visit_mut_pass(visitor), config)
|
|
804
873
|
}
|
|
805
874
|
Either::B(config) => {
|
|
@@ -807,7 +876,9 @@ fn transform_react_lynx_inner(
|
|
|
807
876
|
WorkletVisitor::new(options.mode.unwrap_or(TransformMode::Production), config)
|
|
808
877
|
.with_content_hash(content_hash);
|
|
809
878
|
let visitor =
|
|
810
|
-
visitor
|
|
879
|
+
visitor
|
|
880
|
+
.with_defines_collector(defines_collector.clone())
|
|
881
|
+
.with_main_thread_programmability(Rc::clone(&main_thread_programmability));
|
|
811
882
|
Optional::new(visit_mut_pass(visitor), true)
|
|
812
883
|
}
|
|
813
884
|
};
|
|
@@ -933,26 +1004,27 @@ fn transform_react_lynx_inner(
|
|
|
933
1004
|
let mut defines_for_worklet: Vec<Define> = vec![];
|
|
934
1005
|
helpers::HELPERS.set(&helpers::Helpers::new(false), || {
|
|
935
1006
|
for define in defines_collector.borrow().iter() {
|
|
1007
|
+
let (code, imports) = match print_define(&c, define.items.clone(), top_level_mark, &comments) {
|
|
1008
|
+
Ok(printed) => printed,
|
|
1009
|
+
Err(err) => {
|
|
1010
|
+
define_errors.push(esbuild::PartialMessage {
|
|
1011
|
+
id: None,
|
|
1012
|
+
plugin_name: Some(options.plugin_name.clone()),
|
|
1013
|
+
text: Some(format!("failed to print the collected definition `{}`: {}", define.id, err)),
|
|
1014
|
+
location: None,
|
|
1015
|
+
notes: None,
|
|
1016
|
+
detail: None,
|
|
1017
|
+
});
|
|
1018
|
+
(String::new(), vec![])
|
|
1019
|
+
}
|
|
1020
|
+
};
|
|
936
1021
|
let printed = Define {
|
|
937
1022
|
id: define.id.clone(),
|
|
938
1023
|
unmergeable: define.unmergeable.then_some(true),
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
id: None,
|
|
944
|
-
plugin_name: Some(options.plugin_name.clone()),
|
|
945
|
-
text: Some(format!(
|
|
946
|
-
"failed to print the collected definition `{}`: {}",
|
|
947
|
-
define.id, err
|
|
948
|
-
)),
|
|
949
|
-
location: None,
|
|
950
|
-
notes: None,
|
|
951
|
-
detail: None,
|
|
952
|
-
});
|
|
953
|
-
"".into()
|
|
954
|
-
}
|
|
955
|
-
},
|
|
1024
|
+
runtime_requirements: (define.kind == DefineKind::Worklet)
|
|
1025
|
+
.then(|| transform_runtime_requirements(true)),
|
|
1026
|
+
imports: (define.kind == DefineKind::Worklet).then_some(imports),
|
|
1027
|
+
code,
|
|
956
1028
|
};
|
|
957
1029
|
match define.kind {
|
|
958
1030
|
DefineKind::Snapshot => defines_for_snapshot.push(printed),
|
|
@@ -972,6 +1044,7 @@ fn transform_react_lynx_inner(
|
|
|
972
1044
|
clone_snapshot_ui_source_map_records(&snapshot_ui_source_map_records, &options.filename)
|
|
973
1045
|
},
|
|
974
1046
|
element_templates,
|
|
1047
|
+
runtime_requirements: transform_runtime_requirements(main_thread_programmability.get()),
|
|
975
1048
|
defines_for_snapshot: Some(defines_for_snapshot),
|
|
976
1049
|
defines_for_worklet: Some(defines_for_worklet),
|
|
977
1050
|
}
|
|
@@ -989,6 +1062,7 @@ fn transform_react_lynx_inner(
|
|
|
989
1062
|
clone_snapshot_ui_source_map_records(&snapshot_ui_source_map_records, &options.filename)
|
|
990
1063
|
},
|
|
991
1064
|
element_templates,
|
|
1065
|
+
runtime_requirements: transform_runtime_requirements(main_thread_programmability.get()),
|
|
992
1066
|
defines_for_snapshot: None,
|
|
993
1067
|
defines_for_worklet: None,
|
|
994
1068
|
};
|
|
@@ -1008,6 +1082,7 @@ fn transform_react_lynx_inner(
|
|
|
1008
1082
|
// Preserve the element-template assets collected in the successful transform
|
|
1009
1083
|
// path instead of dropping them in the final wrapper object.
|
|
1010
1084
|
element_templates: result.element_templates,
|
|
1085
|
+
runtime_requirements: result.runtime_requirements,
|
|
1011
1086
|
defines_for_snapshot: result.defines_for_snapshot,
|
|
1012
1087
|
defines_for_worklet: result.defines_for_worklet,
|
|
1013
1088
|
};
|
|
@@ -1166,6 +1241,101 @@ mod tests {
|
|
|
1166
1241
|
assert!(!s.decorators()); // default to false
|
|
1167
1242
|
}
|
|
1168
1243
|
|
|
1244
|
+
#[test]
|
|
1245
|
+
fn should_report_runtime_requirements_from_each_transformed_module() {
|
|
1246
|
+
let options = TransformNodiffOptions {
|
|
1247
|
+
worklet: Either::A(true),
|
|
1248
|
+
css_scope: Either::A(false),
|
|
1249
|
+
..Default::default()
|
|
1250
|
+
};
|
|
1251
|
+
let worklet = transform_react_lynx_inner(
|
|
1252
|
+
r#"
|
|
1253
|
+
import '@lynx-js/react/worklet-runtime/init';
|
|
1254
|
+
export function handler() { 'main thread'; return 42; }
|
|
1255
|
+
"#
|
|
1256
|
+
.into(),
|
|
1257
|
+
options.clone(),
|
|
1258
|
+
);
|
|
1259
|
+
|
|
1260
|
+
assert!(worklet.errors.is_empty());
|
|
1261
|
+
assert!(worklet.runtime_requirements.main_thread_programmability);
|
|
1262
|
+
assert!(worklet.code.contains("@lynx-js/react/worklet-runtime/init"));
|
|
1263
|
+
assert_eq!(worklet.code.matches("__registerWorklet(").count(), 1);
|
|
1264
|
+
assert!(!worklet.code.contains("loadWorkletRuntime"));
|
|
1265
|
+
|
|
1266
|
+
let plain =
|
|
1267
|
+
transform_react_lynx_inner("export function handler() { return 42; }".into(), options);
|
|
1268
|
+
assert!(plain.errors.is_empty());
|
|
1269
|
+
assert!(!plain.runtime_requirements.main_thread_programmability);
|
|
1270
|
+
assert!(!plain.code.contains("worklet-runtime/init"));
|
|
1271
|
+
assert!(!plain.code.contains("registerWorkletInternal"));
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
#[test]
|
|
1275
|
+
fn should_preserve_injected_worklet_requirements_without_retransforming_its_body() {
|
|
1276
|
+
let result = transform_react_lynx_inner(
|
|
1277
|
+
"export const handler = () => { 'main thread'; return 42; };".into(),
|
|
1278
|
+
TransformNodiffOptions {
|
|
1279
|
+
worklet: Either::B(WorkletVisitorConfig {
|
|
1280
|
+
target: swc_plugins_shared::target_napi::TransformTarget::JS,
|
|
1281
|
+
..Default::default()
|
|
1282
|
+
}),
|
|
1283
|
+
css_scope: Either::A(false),
|
|
1284
|
+
..Default::default()
|
|
1285
|
+
},
|
|
1286
|
+
);
|
|
1287
|
+
|
|
1288
|
+
assert!(result.errors.is_empty());
|
|
1289
|
+
assert!(!result.runtime_requirements.main_thread_programmability);
|
|
1290
|
+
assert!(!result.code.contains("worklet-runtime/init"));
|
|
1291
|
+
let definitions = result.defines_for_worklet.unwrap();
|
|
1292
|
+
assert_eq!(definitions.len(), 1);
|
|
1293
|
+
let definition = &definitions[0];
|
|
1294
|
+
assert!(
|
|
1295
|
+
definition
|
|
1296
|
+
.runtime_requirements
|
|
1297
|
+
.as_ref()
|
|
1298
|
+
.unwrap()
|
|
1299
|
+
.main_thread_programmability
|
|
1300
|
+
);
|
|
1301
|
+
assert!(!definition.code.contains("loadWorkletRuntime"));
|
|
1302
|
+
|
|
1303
|
+
let injected = transform_react_lynx_inner(
|
|
1304
|
+
format!(
|
|
1305
|
+
"import {{ {} as {} }} from {:?};\n{}",
|
|
1306
|
+
definition.imports.as_ref().unwrap()[0].imported,
|
|
1307
|
+
definition.imports.as_ref().unwrap()[0].local,
|
|
1308
|
+
definition.imports.as_ref().unwrap()[0].source,
|
|
1309
|
+
definition.code
|
|
1310
|
+
),
|
|
1311
|
+
TransformNodiffOptions {
|
|
1312
|
+
worklet: Either::A(true),
|
|
1313
|
+
css_scope: Either::A(false),
|
|
1314
|
+
..Default::default()
|
|
1315
|
+
},
|
|
1316
|
+
);
|
|
1317
|
+
assert!(injected.errors.is_empty());
|
|
1318
|
+
assert!(injected.defines_for_worklet.unwrap().is_empty());
|
|
1319
|
+
assert_eq!(injected.code.matches("__registerWorklet(").count(), 1);
|
|
1320
|
+
assert!(injected.code.contains("return 42"));
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
#[test]
|
|
1324
|
+
fn should_return_no_runtime_requirement_when_parsing_fails() {
|
|
1325
|
+
let result = transform_react_lynx_inner(
|
|
1326
|
+
"export function handler( {".into(),
|
|
1327
|
+
TransformNodiffOptions {
|
|
1328
|
+
worklet: Either::A(true),
|
|
1329
|
+
..Default::default()
|
|
1330
|
+
},
|
|
1331
|
+
);
|
|
1332
|
+
|
|
1333
|
+
assert!(!result.errors.is_empty());
|
|
1334
|
+
assert!(result.code.is_empty());
|
|
1335
|
+
assert!(!result.runtime_requirements.main_thread_programmability);
|
|
1336
|
+
assert!(result.defines_for_worklet.is_none());
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1169
1339
|
#[test]
|
|
1170
1340
|
fn should_preserve_active_empty_element_template_collector() {
|
|
1171
1341
|
let collector = Rc::new(RefCell::new(vec![]));
|
|
@@ -2,7 +2,6 @@ $ 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
|
-
Blocking waiting for file lock on package cache
|
|
6
5
|
Blocking waiting for file lock on build directory
|
|
7
6
|
Compiling foldhash v0.2.0
|
|
8
7
|
Compiling zerovec v0.11.6
|
|
@@ -11,20 +10,20 @@ $ node ./build.js
|
|
|
11
10
|
Compiling hashbrown v0.17.1
|
|
12
11
|
Compiling either v1.17.0
|
|
13
12
|
Compiling swc_visit v2.0.2
|
|
14
|
-
Compiling hashbrown v0.14.5
|
|
15
13
|
Compiling aho-corasick v1.1.4
|
|
14
|
+
Compiling hashbrown v0.14.5
|
|
16
15
|
Compiling indexmap v2.14.0
|
|
17
16
|
Compiling tinystr v0.8.3
|
|
18
17
|
Compiling potential_utf v0.1.5
|
|
19
|
-
Compiling icu_locale_core v2.2.0
|
|
20
18
|
Compiling icu_collections v2.2.0
|
|
19
|
+
Compiling icu_locale_core v2.2.0
|
|
21
20
|
Compiling serde_json v1.0.151
|
|
22
21
|
Compiling hstr v4.0.0
|
|
23
22
|
Compiling icu_provider v2.2.0
|
|
24
23
|
Compiling swc_atoms v10.0.0
|
|
25
|
-
Compiling regex-automata v0.4.16
|
|
26
|
-
Compiling icu_normalizer v2.2.0
|
|
27
24
|
Compiling icu_properties v2.2.0
|
|
25
|
+
Compiling icu_normalizer v2.2.0
|
|
26
|
+
Compiling regex-automata v0.4.16
|
|
28
27
|
Compiling swc_ecma_regexp_common v0.0.1
|
|
29
28
|
Compiling typenum v1.20.1
|
|
30
29
|
Compiling crossbeam-utils v0.8.22
|
|
@@ -36,25 +35,25 @@ $ node ./build.js
|
|
|
36
35
|
Compiling hashbrown v0.16.1
|
|
37
36
|
Compiling swc_sourcemap v10.0.2
|
|
38
37
|
Compiling bstr v1.13.0
|
|
38
|
+
Compiling regress v0.11.1
|
|
39
39
|
Compiling regex v1.13.1
|
|
40
|
-
Compiling globset v0.4.19
|
|
41
40
|
Compiling swc_common v26.0.0
|
|
42
|
-
Compiling regress v0.11.1
|
|
43
41
|
Compiling swc_ecma_ast v29.0.0
|
|
44
42
|
Compiling swc_ecma_regexp_ast v3.0.0
|
|
45
|
-
Compiling
|
|
43
|
+
Compiling swc_ecma_regexp_visit v0.15.0
|
|
44
|
+
Compiling swc_ecma_regexp v0.15.0
|
|
45
|
+
Compiling swc_ecma_compat_regexp v9.0.0
|
|
46
|
+
Compiling globset v0.4.19
|
|
46
47
|
Compiling crypto-common v0.1.7
|
|
48
|
+
Compiling block-buffer v0.10.4
|
|
47
49
|
Compiling swc_config_macro v1.0.1
|
|
48
50
|
Compiling digest v0.10.7
|
|
49
|
-
Compiling swc_config v6.0.0
|
|
50
51
|
Compiling arrayvec v0.7.8
|
|
51
|
-
Compiling
|
|
52
|
+
Compiling swc_config v6.0.0
|
|
52
53
|
Compiling swc_ecma_transforms_macros v1.0.1
|
|
53
54
|
Compiling fixedbitset v0.5.7
|
|
54
|
-
Compiling swc_ecma_regexp v0.15.0
|
|
55
|
-
Compiling swc_ecma_compat_regexp v9.0.0
|
|
56
|
-
Compiling petgraph v0.7.1
|
|
57
55
|
Compiling zmij v1.0.23
|
|
56
|
+
Compiling petgraph v0.7.1
|
|
58
57
|
Compiling swc_allocator v5.0.0
|
|
59
58
|
Compiling sha1 v0.10.7
|
|
60
59
|
Compiling chrono v0.4.45
|
|
@@ -64,13 +63,13 @@ $ node ./build.js
|
|
|
64
63
|
Compiling itertools v0.15.0
|
|
65
64
|
Compiling nom v8.0.0
|
|
66
65
|
Compiling static-map-macro v0.3.4
|
|
67
|
-
Compiling foldhash v0.1.5
|
|
68
66
|
Compiling precomputed-map v0.2.0
|
|
69
|
-
Compiling
|
|
67
|
+
Compiling foldhash v0.1.5
|
|
70
68
|
Compiling swc_ecma_visit v29.0.0
|
|
71
69
|
Compiling swc_ecma_parser v45.1.1
|
|
72
70
|
Compiling tracing-subscriber v0.3.23
|
|
73
71
|
Compiling browserslist-rs v0.20.0
|
|
72
|
+
Compiling swc_ecma_preset_env v63.0.0
|
|
74
73
|
Compiling st-map v0.2.4
|
|
75
74
|
Compiling cargo_metadata v0.18.1
|
|
76
75
|
Compiling par-iter v2.0.0
|
|
@@ -79,11 +78,6 @@ $ node ./build.js
|
|
|
79
78
|
Compiling pathdiff v0.2.3
|
|
80
79
|
Compiling testing v27.0.0
|
|
81
80
|
Compiling preset_env_base v9.0.0
|
|
82
|
-
Compiling sha2 v0.10.9
|
|
83
|
-
Compiling lru v0.18.4
|
|
84
|
-
Compiling path-clean v1.0.1
|
|
85
|
-
Compiling swc_ecma_testing v27.0.0
|
|
86
|
-
Compiling swc_ecma_loader v27.0.0
|
|
87
81
|
Compiling swc_ecma_utils v35.0.0
|
|
88
82
|
Compiling swc_ecma_hooks v1.0.0
|
|
89
83
|
Compiling swc_ecma_transforms_base v49.0.1
|
|
@@ -96,9 +90,9 @@ $ node ./build.js
|
|
|
96
90
|
Compiling swc_ecma_compat_es2022 v53.0.0
|
|
97
91
|
Compiling swc_ecma_compat_bugfixes v56.0.0
|
|
98
92
|
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
93
|
Compiling swc_ecma_compat_es2018 v51.0.0
|
|
94
|
+
Compiling swc_ecma_compat_es2019 v50.0.0
|
|
95
|
+
Compiling swc_ecma_compat_es2016 v50.0.0
|
|
102
96
|
Compiling swc_ecma_compat_es2021 v50.0.0
|
|
103
97
|
Compiling swc_ecma_compat_es2017 v50.0.0
|
|
104
98
|
Compiling swc_ecma_transforms_react v55.0.1
|
|
@@ -107,33 +101,38 @@ $ node ./build.js
|
|
|
107
101
|
Compiling swc_ecma_transforms_proposal v49.0.0
|
|
108
102
|
Compiling swc_ecma_minifier v61.0.4
|
|
109
103
|
Compiling swc_ecma_transforms v62.0.0
|
|
110
|
-
Compiling
|
|
104
|
+
Compiling sha2 v0.10.9
|
|
105
|
+
Compiling lru v0.18.4
|
|
106
|
+
Compiling path-clean v1.0.1
|
|
111
107
|
Compiling swc_compiler_base v64.0.0
|
|
108
|
+
Compiling swc_ecma_testing v27.0.0
|
|
109
|
+
Compiling swc_ecma_loader v27.0.0
|
|
110
|
+
Compiling swc_ecma_ext_transforms v35.0.0
|
|
112
111
|
Compiling swc_node_comments v27.0.0
|
|
113
112
|
Compiling swc_transform_common v20.0.0
|
|
114
113
|
Compiling jsonc-parser v0.26.3
|
|
115
114
|
Compiling swc_core v77.1.2
|
|
116
|
-
Compiling swc_ecma_transforms_testing v53.0.0
|
|
117
115
|
Compiling swc v75.0.1
|
|
116
|
+
Compiling swc_ecma_transforms_testing v53.0.0
|
|
118
117
|
Compiling swc_plugin_proxy v30.0.0
|
|
119
118
|
Compiling sha-1 v0.10.1
|
|
120
119
|
Compiling hybrid-array v0.4.13
|
|
121
|
-
Compiling block-buffer v0.12.1
|
|
122
120
|
Compiling crypto-common v0.2.2
|
|
123
|
-
Compiling
|
|
121
|
+
Compiling block-buffer v0.12.1
|
|
124
122
|
Compiling const-oid v0.10.2
|
|
123
|
+
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
125
124
|
Compiling digest v0.11.3
|
|
126
125
|
Compiling sha2 v0.11.0
|
|
127
126
|
Compiling swc_plugin_define_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_define_dce)
|
|
128
127
|
Compiling swc_plugin_directive_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_directive_dce)
|
|
129
128
|
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)
|
|
131
129
|
Compiling swc_plugin_list v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_list)
|
|
130
|
+
Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
|
|
131
|
+
Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
|
|
132
|
+
Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
|
|
132
133
|
Compiling swc_plugin_dynamic_import v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_dynamic_import)
|
|
133
134
|
Compiling swc_plugin_snapshot v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_snapshot)
|
|
134
|
-
Compiling
|
|
135
|
+
Compiling swc_plugin_text v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_text)
|
|
135
136
|
Compiling swc_plugin_css_scope v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_css_scope)
|
|
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)
|
|
138
137
|
Compiling swc_plugin_reactlynx v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx)
|
|
139
|
-
Finished `release` profile [optimized] target(s) in
|
|
138
|
+
Finished `release` profile [optimized] target(s) in 4m 17s
|
|
Binary file
|