This document only contains breaking changes
-
VueSsrAssetRenderer.render()
optional args are moved to separate object instead of additional args to the functionBefore:
const { header, footer } = assetRenderer.renderAssets(ssrContext._matchedComponents, true) const { header, footer } = assetRenderer.renderAssets(ssrContext._matchedComponents, true, true) const { header, footer } = assetRenderer.renderAssets(ssrContext._matchedComponents, true, true, true)
After:
const { header, footer } = assetRenderer.renderAssets(ssrContext._matchedComponents, { excludeHotUpdateScripts: true, // Default renderScriptPreloads: true, // Default renderFontPreloads: true, // Default })
- Mark
vue@^3
andvue-loader@^17
as peer dependencies
VueSsrAssetsRenderer
constructor now acceptswebpack.config.entry
instead of root component name. Webpack sometimes do not place the root chunk (with all the initialization JS) with the root component in large applications. This change ensures the root chunk is always resolved.