Minor Changes
-
#18611
f98e8a8Thanks @matthewp! - Adds standalone rendering:astro()compiles.astrofiles in a plain Vite project, andrenderToString()/renderToResponse()from@astrojs/runtimerender a component tree with its stylesheets, scripts and framework islands in dev and in builds -
#18611
f98e8a8Thanks @matthewp! - Adds declarative renderer fields: anAstroRenderercan carryoptions(passed to its server entrypoint asthis.options),optimizeDeps,dedupe,noExternal(a list, or a function of the project root for lists found by crawling dependencies), a dev-onlydevHeadScriptand anappEntrypointthat its entrypoints import, whichastro()applies, so a renderer is plain data next to the framework's own Vite plugin
Patch Changes
-
#18630
c904827Thanks @astro-factory! - Fixes bundled scripts and hydrated islands being blocked whensecurity.csp.scriptDirective.strictDynamicis enabled. Astro now adds the hash of every bundled script toscript-srcand renders an import map with theirintegrityin the<head>. -
#18688
1999c84Thanks @astro-factory! - Fixes errors thrown after a page has started streaming bypassing the configuredlogger. They are now reported once through it, as oneerrorrecord, in both production andastro dev