-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
feat(compiler-sfc): transform asset url #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The reason I left them as TODO is because we probably want to redo this to use For example, currently <img src="./logo.png" srcset="./logo.png"/> is compiled to: createVNode('img', {
src: require("./logo.png")
}) But inline import logoPng from './logo.png'
createVNode('img', {
src: logoPng
}) So, instead of generating an inline
|
d61afe5
to
9fd5b51
Compare
packages/compiler-sfc/__tests__/templateTransformAssetUrl.spec.ts
Outdated
Show resolved
Hide resolved
9fd5b51
to
20545dd
Compare
20545dd
to
5443978
Compare
👍 |
Hey @underfin, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚 |
No description provided.