|
1 | | -# browserslist-config |
| 1 | +# @naverpay/browserslist-config |
2 | 2 |
|
3 | | -Shareable Browserslist config for @naverpay/frontend |
| 3 | +> Shareable [Browserslist](https://browsersl.ist) configuration for @naverpay/frontend |
4 | 4 |
|
5 | | -지원범위: [>0.2%,not dead,not op_mini all,not ie>=0,not ios_saf<15,ios_saf>=15,node>=18.18.0,Chrome>=106](https://browsersl.ist/#q=%3E0.2%25%2Cnot+dead%2Cnot+op_mini+all%2Cnot+ie%3E%3D0%2Cnot+ios_saf%3C15%2Cios_saf%3E%3D15%2Cnode%3E%3D18.18.0%2CChrome%3E%3D106®ion=KR) |
| 5 | +## Overview |
| 6 | + |
| 7 | +This package provides a unified and maintainable list of supported browsers and Node.js versions for all NAVERPAY frontend services. |
| 8 | + |
| 9 | +**Current support range:** |
| 10 | +[>0.2%, not dead, not op_mini all, not ie >= 0, not ios_saf < 15, ios_saf >= 15, node >= 18.18.0, Chrome >= 106](https://browsersl.ist/#q=%3E0.2%25%2Cnot+dead%2Cnot+op_mini+all%2Cnot+ie%3E%3D0%2Cnot+ios_saf%3C15%2Cios_saf%3E%3D15%2Cnode%3E%3D18.18.0%2CChrome%3E%3D106®ion=KR) |
| 11 | + |
| 12 | +## Installation |
| 13 | + |
| 14 | +```bash |
| 15 | +npm install --save-dev @naverpay/browserslist-config |
| 16 | +# or |
| 17 | +yarn add -D @naverpay/browserslist-config |
| 18 | +# or |
| 19 | +pnpm add -D @naverpay/browserslist-config |
| 20 | +``` |
| 21 | + |
| 22 | +## Usage |
| 23 | + |
| 24 | +### In your `package.json` |
| 25 | + |
| 26 | +```json |
| 27 | +{ |
| 28 | + "browserslist": ["extends @naverpay/browserslist-config"] |
| 29 | +} |
| 30 | +``` |
| 31 | + |
| 32 | +### Or in a `.browserslistrc` file |
| 33 | + |
| 34 | +``` |
| 35 | +extends @naverpay/browserslist-config |
| 36 | +``` |
| 37 | + |
| 38 | +## Targets |
| 39 | + |
| 40 | +- Browsers with >0.2% market share |
| 41 | +- Excludes browsers with no global usage ("dead") |
| 42 | +- Excludes Internet Explorer, Opera Mini, iOS Safari below 15 |
| 43 | +- Includes iOS Safari 15+ |
| 44 | +- Node.js 18.18.0+ |
| 45 | +- Chrome 106+ |
| 46 | + |
| 47 | +See the full, up-to-date list here: |
| 48 | +[browsersl.ist Query (KR)](https://browsersl.ist/#q=%3E0.2%25%2Cnot+dead%2Cnot+op_mini+all%2Cnot+ie%3E%3D0%2Cnot+ios_saf%3C15%2Cios_saf%3E%3D15%2Cnode%3E%3D18.18.0%2CChrome%3E%3D106®ion=KR) |
| 49 | + |
| 50 | +## FAQ |
| 51 | + |
| 52 | +**Q: Why use a shared Browserslist config?** |
| 53 | +A: It ensures every @naverpay/frontend project follows the same browser support policy—less redundancy, fewer mistakes. |
| 54 | + |
| 55 | +**Q: How often is it updated?** |
| 56 | +A: As the business/project requirements or browser landscape changes. Check CHANGELOG for details. |
| 57 | + |
| 58 | +**Q: How do I check the resolved browser list?** |
| 59 | +A: |
| 60 | + |
| 61 | +```bash |
| 62 | +npx browserslist |
| 63 | +``` |
| 64 | + |
| 65 | +Or use [browsersl.ist](https://browsersl.ist) with the query above. |
| 66 | + |
| 67 | +## License |
| 68 | + |
| 69 | +ISC |
0 commit comments