Skip to content

Latest commit

 

History

History
155 lines (111 loc) · 4.75 KB

File metadata and controls

155 lines (111 loc) · 4.75 KB
browserslist-config-anolilab

Shareable browserlist config for Anolilab projects.


typescript-image mit licence npm downloads Chat PRs Welcome


Daniel Bannert's open source work is supported by the community on GitHub Sponsors


Install

npm install browserslist-config-anolilab
yarn add browserslist-config-anolilab
pnpm add browserslist-config-anolilab

Usage

Package.json

{
    "browserslist": ["extends browserslist-config-anolilab"]
}

Alternatively, add this to .browserslistrc file:

extends browserslist-config-anolilab

Or when using babel-preset-env

module.exports = {
    presets: [
        [
            "env",
            {
                targets: {
                    // eslint-disable-next-line global-require
                    browsers: require("browserslist-config-anolilab"),
                },
            },
        ],
    ],
}

What is Browserslist?

Browserslist is a library to share a browsers list between different front end tools, like Autoprefixer, Eslint, and Stylelint.

Supported Browsers

{
    "legacyBrowsers": ["> 1%", "last 2 versions", "Firefox ESR"],
    "modernBrowsers": [
        "last 2 Chrome versions",
        "not Chrome < 60",
        "last 2 Safari versions",
        "not Safari < 10.1",
        "last 2 iOS versions",
        "not iOS < 10.3",
        "last 2 Firefox versions",
        "not Firefox < 54",
        "last 2 Edge versions",
        "not Edge < 15"
    ],
    "node": ["last 2 node major versions"],
    "production": ["> 1%", "last 2 versions", "Firefox ESR", "not dead"],
    "ssr": ["node 22"]
}

Related

Supported Node.js Versions

Libraries in this ecosystem make the best effort to track Node.js’ release schedule.

Here’s a post on why we think this is important.

Contributing

If you would like to help take a look at the list of issues and check our Contributing guidelines.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

Made with ❤️ at Anolilab

This is an open source project and will always remain free to use. If you think it’s cool, please star it 🌟. Anolilab is a Development and AI Studio. Contact at hello@anolilab.com if you need any help with these technologies or want to say hi!

License

The anolilab browserslist-config-anolilab is open-sourced software licensed under the MIT