fix: dont resolve imports with malformed URI#16244
Conversation
|
|
There was a problem hiding this comment.
vite/playground/assets/index.html
Lines 535 to 552 in 6c8c7b8
These
new URLs is transformed to import.meta.glob and then it is transformed to import url from './nested/テスト-測試-white space%.png'. These should be import url from './nested/テスト-測試-white space%25.png', but that change opens up a can of worms (#16243), so I simply renamed back these files and put a different file in a different directory.
|
/ecosystem-ci run |
|
📝 Ran ecosystem CI on ✅ analogjs, astro, histoire, ladle, laravel, marko, nuxt, previewjs, quasar, qwik, rakkas, remix, sveltekit, unocss, vike, vite-plugin-pwa, vite-plugin-react, vite-plugin-react-pages, vite-plugin-react-swc, vite-plugin-svelte, vite-plugin-vue, vite-setup-catalogue, vitepress, vitest |
|
hey i know this was meant to fix #15298 but the issue still persists in vite 6. |
|
@hichemfantar I reopened #15298 👍 |


Description
To align with native ESM, Vite should not resolve
import './foo%.js'to./foo%.js(#15298 (comment)).repro with node: https://stackblitz.com/edit/node-ccxwu6?file=index.js
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).