// Copyright 2024 The Lynx Authors. All rights reserved. // Licensed under the Apache License Version 2.0 that can be found in the // LICENSE file in the root directory of this source tree. import { initApiEnv } from './api/lynxApi.js'; import { initEventListeners } from './listeners.js'; import { initWorklet } from './workletRuntime.js'; if (globalThis.lynxWorkletImpl === undefined) { initWorklet(); initApiEnv(); initEventListeners(); } /** * Registers compiler-generated main-thread functions with the initialized host runtime. * * @internal */ export const registerWorklet = globalThis.registerWorkletInternal;