fix(ssr): should not hoist transformed asset urls in ssr compile
fix #3874
This commit is contained in:
@@ -54,9 +54,12 @@ describe('compiler sfc: transform asset url', () => {
|
||||
test('support uri fragment', () => {
|
||||
const result = compileWithAssetUrls(
|
||||
'<use href="~@svg/file.svg#fragment"></use>' +
|
||||
'<use href="~@svg/file.svg#fragment"></use>'
|
||||
'<use href="~@svg/file.svg#fragment"></use>',
|
||||
{},
|
||||
{
|
||||
hoistStatic: true
|
||||
}
|
||||
)
|
||||
|
||||
expect(result.code).toMatchSnapshot()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user