Skip to content

Commit 218e921

Browse files
mynuolrsendya
authored andcommitted
docs: how to remove polyfill
1 parent e392885 commit 218e921

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,23 @@ yarn run lint
107107
}
108108
}
109109
```
110+
- **使用polyfill兼容至 IE10**
111+
112+
- 移除polyfill。 polyfill用于兼容IE,不需要兼容IE可移除。减少体积
113+
> 参考 [Vue CLI Polyfill](https://cli.vuejs.org/zh/guide/browser-compatibility.html#usebuiltins-usage)
114+
115+
- 移除入口文件的 `import '@babel/polyfill'`
116+
117+
- 删除 `babel.conflg.js` 中的
118+
```ecmascript 6
119+
[
120+
'@babel/preset-env',
121+
{
122+
'useBuiltIns': 'entry'
123+
}
124+
]
125+
```
126+
110127
111128
附属文档
112129
----

0 commit comments

Comments
 (0)