-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix: Playground build; Remove @babel/polyfill import from the playground #15947
Conversation
Do we know any more about what caused this? |
My guess: The introduction of the playground in #14497 did not define an explicit dependency on The polyfill would be important if we wanted to support older browsers. If we want to, we could just as easily install the |
Hmm, I tried this in my local copy of the branch and I'm still seeing the error.
This despite clearly having installed
|
I think I know what the issue is. See in https://unpkg.com/[email protected]/package.json: "@babel/core": "^7.0.0 <7.4.0", We use Babel 7.4.x but Parcel is still on lower version … |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm fine with this fix until parcel updates to the latest babel version or we move away from parcel.
Thank you for the explorations around this problem, I did not had much information about this problem, but I used this "fix" locally to be able to run the playground. I merged the "fix" for now if someone has a better alternative I think we can discuss it in a follow-up PR. |
Description
Removes the @babel/polyfill import from the playground. The screen seems to work as expected without it, and with it, the build fails.
How has this been tested?
I executed npm run playground:start
I verified the build was successful without errors, on master it failed.
Fixes #16082.