-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
plugin-legacy for IE11 dosen't work #4414
Comments
@nulladdict @AlexandreBonaventure maybe you could help to triage this one if you have some time. |
After taking a quick look, it seems something is requiring the Anyways, you can workaround your issue by adding the polyfill manually like that: import legacy from "@vitejs/plugin-legacy";
export default {
plugins: [
legacy({
// for ie11
targets: ["ie >= 11"],
additionalLegacyPolyfills: ["regenerator-runtime/runtime"],
polyfills: ["es.array.iterator"],
}),
],
}; @patak-js we should consider adding some default polyfills like this one 🔼 |
Thanks. |
Thanks @AlexandreBonaventure! So, is it ok to say that this is an upstream bug in Babel then? |
@patak-js well actually this is not really an upstream bug because:
So I think we should add |
Hello @Darcrandex. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it! |
PR here: #4440 |
@AlexandreBonaventure excuse me, i use
but when i build my project, i got a error:
i guess maybe |
btw, i tried this as well:
but i still found the |
Describe the bug
Hello, I need some help, please. Just read the steps, ↓
@vitejs/plugin-legacy
I just follow the tutorial
Then I run
yarn serve
, I got a error msg:Reproduction
https://github.com/Darcrandex/vite-for-ie11.git
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: