We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb10ebf commit 08e928cCopy full SHA for 08e928c
packages/plugin-vue/README.md
@@ -51,7 +51,7 @@ export interface Options {
51
}
52
```
53
54
-## Example for passing options to `@vue/compiler-dom`:
+## Example for passing options to `vue/compiler-sfc`:
55
56
```ts
57
import vue from '@vitejs/plugin-vue'
@@ -62,6 +62,16 @@ export default {
62
template: {
63
compilerOptions: {
64
// ...
65
+ },
66
+ transformAssetUrls: {
67
+ // default tags
68
+ tags: {
69
+ video: ['src', 'poster'],
70
+ source: ['src'],
71
+ img: ['src'],
72
+ image: ['xlink:href', 'href'],
73
+ use: ['xlink:href', 'href']
74
+ }
75
76
77
})
0 commit comments