Skip to content

Commit

Permalink
fix(vite): provide default values for transformAssetUrls (#24173)
Browse files Browse the repository at this point in the history
  • Loading branch information
darioferderber committed Nov 7, 2023
1 parent 1467f0c commit 2832f01
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/vite/src/vite.ts
Expand Up @@ -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 },
Expand Down

0 comments on commit 2832f01

Please sign in to comment.