Lilact
    Preparing search index...

    Function run

    • Transpiles and evaluates JSX source code as a Lilact module.

      The source is registered under the supplied path, transpiled with source mappings and runtime tracing enabled, evaluated in the global Lilact runtime, and returned as module exports. Reloaded component exports are compared with their previous versions to support hot loading.

      Parameters

      • jsx: string

        JSX or JavaScript source code to evaluate.

      • Optionalpath: string = ...

        InlineJSX-${Lilact.eval_num + 1}] - Module path used for caching, diagnostics, and source mapping.

      • Optionaloptions: { forceReload?: boolean } = {}

        Evaluation options.

        • OptionalforceReload?: boolean

          Forces dependent resources to reload when they are required.

      Returns any

      The evaluated module exports.

      If transpilation or runtime evaluation fails.