Skip to content

Commit

Permalink
docs: how to remove polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
mynuolr authored and sendya committed Feb 28, 2019
1 parent e392885 commit 218e921
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,23 @@ yarn run lint
}
}
```
- **使用polyfill兼容至 IE10**

- 移除polyfill。 polyfill用于兼容IE,不需要兼容IE可移除。减少体积
> 参考 [Vue CLI Polyfill](https://cli.vuejs.org/zh/guide/browser-compatibility.html#usebuiltins-usage)
- 移除入口文件的 `import '@babel/polyfill'`

- 删除 `babel.conflg.js` 中的
```ecmascript 6
[
'@babel/preset-env',
{
'useBuiltIns': 'entry'
}
]
```
附属文档
----
Expand Down

0 comments on commit 218e921

Please sign in to comment.