@marko/compiler@5.39.64
·
6 commits
to main
since this release
Patch Changes
-
#3210
5005d96Thanks @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 deprecatedoutput: "hydrate".linkAssets: { runtime, onAsset }connects the bundler:onAsset(kind, file, id)is called for every discovered page and load entry, andruntimenames a module whoseflushfunction resolves an asset id into the HTML for its tags while rendering.
With
linkAssetsconfigured 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
5005d96Thanks @DylanPiercey! - Add version APIs for tooling:@marko/compilernow exports itsversion, translators export theirs, andgetRuntimeVersion(translator)returns the resolved translator's version.