-
Notifications
You must be signed in to change notification settings - Fork 20
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
Correct way to polyfill? #12
Comments
Hey just sharing my method:
then add
in your js file (or use require instead of import) |
@TheBlindHawk you're right, would you mind to contribute a pr? |
this should be the same as |
@davidenke |
@TheBlindHawk me too, that's why it took years for me to notice :P I already updated the readme. |
Howdy, I could not figure out the right way to use this polyfill in an npm project (simple
create-react-app
for example).Eventually, I copied the contents
node_modules/context-filter-polyfill/dist/index.js
into a<script>
tag in my head, and this worked but feels like the wrong way to do it.What's the correct way?
The text was updated successfully, but these errors were encountered: