Skip to content

How asset file with encodededURI path should be imported following vite 5.2 ? #16224

Answered by sapphi-red
Jerboas86 asked this question in Q&A
Discussion options

You must be logged in to vote

It should work since 5.2.4 (#16244). That said, in native ESM, the import should be written as import aFile from "./a%2520file.json". Vite doesn't resolve that correctly though.
I'd recommend avoid using % in a file name for now.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jerboas86
Comment options

Answer selected by Jerboas86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants