Skip to content

Commit 223b328

Browse files
committed
Expand defaultAssetUrlOptions
Expand defaultAssetUrlOptions to include other asset-linking html attributes
1 parent 9fa8241 commit 223b328

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/compiler-sfc/src/template/transformAssetUrl.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ export const defaultAssetUrlOptions: Required<AssetURLOptions> = {
4242
source: ['src'],
4343
img: ['src'],
4444
image: ['xlink:href', 'href'],
45-
use: ['xlink:href', 'href']
45+
use: ['xlink:href', 'href'],
46+
audio: ['src'],
47+
object: ['data'],
48+
embed: ['src'],
49+
track: ['src'],
50+
link: ['href'],
51+
iframe: ['src']
4652
}
4753
}
4854

0 commit comments

Comments
 (0)