-
-
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
Building with plugin-legacy causes "regeneratorRuntime is undefined" error in IE11 #3362
Closed
6 tasks done
Labels
Comments
I faced this problem too. Configuration in my case npm i -D regenerator-runtime vite.config.ts ...
plugins: [
vue(),
legacy({
targets: ['Chrome >= 49', 'not IE 11'],
polyfills: ['es/promise'],
additionalLegacyPolyfills: ['regenerator-runtime/runtime']
})
],
... Target browsers don't match yours. Maybe my solution will be helpful. |
This helped get past that error, thanks! |
nihalgonsalves
added a commit
that referenced
this issue
May 12, 2021
9 tasks
nihalgonsalves
added
documentation
Improvements or additions to documentation
and removed
pending triage
labels
May 12, 2021
patak-dev
pushed a commit
that referenced
this issue
May 12, 2021
fi3ework
pushed a commit
to fi3ework/vite
that referenced
this issue
May 22, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When I build my project with
@vitejs/plugin-legacy
and testing in IE11, I get the following error:Reproduction
Unfortunately due to the complexity of my project I am unable to put together a reproduction for this. Will work on getting that together soon.
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Logs
vite.config.js
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: