Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@automattic/calypso-polyfills

Package Overview
Dependencies
Maintainers
24
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automattic/calypso-polyfills

Polyfills required for Calypso to work across various browsers and in node.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-77.78%
Maintainers
24
Weekly downloads
 
Created
Source

Calypso Polyfills

This package includes several configurations for required polyfills for Calypso, targeting three different environments: node, evergreen (newer browsers) and fallback (older browsers).

Features

calypso-polyfills ties into the Calypso build process, to ensure that only the required polyfills for each build target are needed. Through the use of Babel's preset-env and browserslist configurations, we strip out any polyfills that are supported for all browsers that are supported by that build target.

See the root directory's package.json for the list of supported browsers for each build target.

Usage

In Node.js, simply require the package:

  require( '@automattic/calypso-polyfills' );

In a browser, a similar naked import will include the polyfills (defaulting to the fallback set):

	import from '@automattic/calypso-polyfills';

If you want to explicitly include the evergreen or fallback polyfills, you can append to the import path:

  import from '@automattic/calypso-polyfills/browser-evergreen';
  import from '@automattic/calypso-polyfills/browser-fallback';

Keywords

FAQs

Package last updated on 15 Jan 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc