fix(vite): provide default values for transformAssetUrls (#24173)

This commit is contained in:
Dario Ferderber 2023-11-07 20:40:16 +01:00 committed by GitHub
parent 1467f0cd55
commit 2832f0114b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,16 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => {
virtual(nuxt.vfs)
],
vue: {
reactivityTransform: nuxt.options.experimental.reactivityTransform
reactivityTransform: nuxt.options.experimental.reactivityTransform,
template: {
transformAssetUrls: {
video: ['src', 'poster'],
source: ['src'],
img: ['src'],
image: ['xlink:href', 'href'],
use: ['xlink:href', 'href']
}
}
},
server: {
watch: { ignored: isIgnored },