Skip to content

@marko/compiler@5.39.64

Choose a tag to compare

@github-actions github-actions released this 12 Jun 20:56
· 6 commits to main since this release

Patch Changes

  • #3210 5005d96 Thanks @DylanPiercey! - Add compiler entry compilation and native asset handling for bundler integrations.

    • entry: "page" | "load" compiles a template as a top level page entry or a lazily loaded entry, replacing the deprecated output: "hydrate".
    • linkAssets: { runtime, onAsset } connects the bundler: onAsset(kind, file, id) is called for every discovered page and load entry, and runtime names a module whose flush function resolves an asset id into the HTML for its tags while rendering.

    With linkAssets configured the server tracks the assets needed by each page, writing their script tags into the streamed HTML (at the end of <head> when rendered, otherwise before the first flush).

  • #3210 5005d96 Thanks @DylanPiercey! - Add version APIs for tooling: @marko/compiler now exports its version, translators export theirs, and getRuntimeVersion(translator) returns the resolved translator's version.