chore(cli): remove @babel/plugin-transform-runtime

This commit is contained in:
chenjiahan
2021-04-13 11:26:23 +08:00
committed by neverland
parent 93559a5741
commit 5ac2033e2d
4 changed files with 1 additions and 31 deletions

View File

@@ -292,24 +292,11 @@ module.exports = {
- @babel/preset-env不含 core-js
- @babel/preset-typescript
- @babel/plugin-transform-runtime
- @babel/plugin-transform-object-assign
- @babel/plugin-proposal-optional-chaining
- @babel/plugin-proposal-nullish-coalescing-operator
- @vue/babel-preset-jsx
### 依赖
由于使用了 `@babel/plugin-transform-runtime` 来优化 Babel 的 helper 函数,你需要将 `@babel/runtime` 添加到 `package.json` 的依赖项:
```json
{
"dependencies": {
"@babel/runtime": "7.x"
}
}
```
## Postcss
通过根目录下的`postcss.config.js`文件可以对 Postcss 进行配置。