-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
[@babel/babel-polyfill] allow use of Financial-Times/polyfill-library as polyfills-source #19
Comments
Hey @nitwhiz! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Just interesting, how you are imagining it? |
|
That's perfect and really useful. But |
So what's the supposed way to include custom polyfills? The main thing I'm after is the The main goal is to keep my head free from thinking about "does this work?" "do i need to check if XMLHttpRequest exists?" - it would be nice to just write ES6 code with standards the majority (aka chrome) of browsers accept and having stuff that won't work on browsers in my browserlist transpiled to something that works from alone. |
Just direct import of polyfills, I don't see any other way. I don't know anyone package which can provide required polyfills in the required format (ES or commonjs modules for each feature). I'm thinking about adding polyfills for a serious part of web standards to |
Nah I mean like providing them in the correct format. I would like to provide the polyfills I need in the correct format myself so babel will pick them up. |
Feature Request
Is your feature request related to a problem? Please describe.
core-js is missing the important things.
ChildNode.remove()
,fetch()
,XMLHttpRequest()
...Describe the solution you'd like
possibility to use Financial-Times/polyfill-library or any other source of polyfills while keeping the possibility of
useBuiltIns: 'usage'
, so babel-loader still only includes whats necessary.Describe alternatives you've considered
Including a huge bundle of polyfills and/or gather the ones i need and/or have a mess of a setup of polyfilled and not polyfilled things while having half of the features polyfilled fully automatic by babel/polyfill.
Teachability, Documentation, Adoption, Migration Strategy
The text was updated successfully, but these errors were encountered: