Socket
Socket
Sign inDemoInstall

babel-polyfill-silencer

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-polyfill-silencer

Microlibrary for use by webpack to avoid babel implicitly importing core-js polyfills


Version published
Weekly downloads
1
Maintainers
1
Install size
3.32 kB
Created
Weekly downloads
 

Readme

Source

babel-polyfill-silencer

Microlibrary for use by webpack to avoid babel implicitly importing core-js polyfills

Usage

In your client side code use require('babel-polyfill-silencer') on the first line. This is only necessary if you want to avoid a race condition if loading a Symbol polyfill asynchronously, e.g. https://cdn.polyfill.io/v2/docs/

In your webpack config use/extend require('babel-polyfill-silencer/aliases') in your aliases config.

It's probably possible to do something similar with other client packagers. PRs documenting this are welcome :smile:

Finally, if using babel-transform-runtime pass it the option {polyfill: false}

FAQs

Last updated on 01 Jul 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc