Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@startdt/browserslist-config
Advanced tools
npm i browserslist @startdt/browserslist-config --save-dev
提示:在项目根目录运行
npx browserslist
命令可以查看完整的浏览器支持环境。
使用配置文件:
# .browserslistrc
extends @startdt/browserslist-config
或者项目属性:
// package.json
"browserslist": [
"extends @startdt/browserslist-config"
]
为了保证项目的可用性,覆盖更多的用户,同时获得更好的浏览体验,我们总是希望开发人员面向更多的浏览器平台和版本构建项目。由于 Vue.js 框架的特性,目标浏览器的范围最大不能超出兼容 ECMAScript 5 的浏览器:
Vue 不支持 IE8 及以下版本,因为 Vue 使用了 IE8 无法模拟的 ECMAScript 5 特性。但它支持所有兼容 ECMAScript 5 的浏览器。
但这并不意味着你不能使用最新的 ES6 特性,因为 Vue CLI 项目会通过 @babel/preset-env
和 browserslist
配置来决定项目需要的 polyfill(请参看:Vue CLI 浏览器兼容性)。
IE / Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
ie11, >= 12 | >= 21 | >= 23 | >= 6 | >= 15 |
iOS | Android | Firefox | Chrome | Opera Mobile | Opera Mini |
---|---|---|---|---|---|
>= 6 | >= 4.4 | >= 68 | >= 81 | >= 46 | not op_mini all |
Samsung | UC Browser | QQ Browser | Baidu Browser | KaiOS Browser |
---|---|---|---|---|
>= 4 | >= 12.12 | >= 10.4 | >= 7.12 | >= 2.5 |
> 0.5%
的浏览器版本;> 0%
的浏览器版本;ECMAScript 5
特性的浏览器版本;FAQs
Browserslist 可共享配置
We found that @startdt/browserslist-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.