npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ackee/browserslist-config

v3.0.0

Published

Default browsers list supported in our projects at Ackee

Downloads

617

Readme

@ackee/browserslist-config

A default browsers list for our projects in Akcee - list of browsers for prod env.

More readble version for our PMs and our clients can found here.

Usage

yarn add @ackee/browserslist-config -D

Add this to your package.json:

    "browserslist": [
        "extends @ackee/browserslist-config"
    ]

Browserslist in create-react-app

Usage

  1. Make sure to have installed at least @ackee/[email protected] version:

    yarn add @ackee/[email protected] -D
  2. Add to package.json:

    "browserslist": [
        "extends @ackee/browserslist-config"
    ]
  3. Import core-js in root of your project for correct polyfilling:

    import 'core-js';

Recommendations

  1. Since node modules often have the largest impact on the final bundle size, it's crucial to choose those packages carefully:

    To leverage the power of browserslist on your project, it's important to choose packages transpiled to modern (non-ES5 JavaScript) as much as possible.

  2. Lint the browser compatibility of your code by adding eslint-plugin-compat

Structure

Debugging

@babel/preset-env has available debug option. You can set it in:

An example output could look like this for browserslist only with Chrome 81:

@babel/preset-env: `DEBUG` option

Using targets:
{
    "chrome": "81"
}

Using modules transform: false

Using plugins:
syntax-nullish-coalescing-operator { "chrome":"81" }
syntax-optional-chaining { "chrome":"81" }
syntax-json-strings { "chrome":"81" }
syntax-optional-catch-binding { "chrome":"81" }
syntax-async-generators { "chrome":"81" }
syntax-object-rest-spread { "chrome":"81" }
syntax-dynamic-import { "chrome":"81" }
syntax-top-level-await { "chrome":"81" }

Using polyfills with `entry` option: