Legacy script is injected with an incorrect relative path in the built HTML file when using @vitejs/plugin-legacy:5.4.2
#18256
Labels
@vitejs/plugin-legacy:5.4.2
#18256
Describe the bug
When using the @vitejs/plugin-legacy plugin with Vite, the polyfill script is injected into the built index.html file with an incorrect path.
Even after setting the base option, the path for the polyfills-legacy script lacks an absolute path (e.g., /assets/), causing the browser to throw an error, as it cannot locate the polyfill file.
The above issue does not occur in version 5.4.1, but only in version 5.4.2
Reproduction
none
Steps to reproduce
Run
npm install
&npm run build
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: