mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +00:00
chore(cli): remove @babel/plugin-transform-runtime
This commit is contained in:
@@ -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 进行配置。
|
||||
|
Reference in New Issue
Block a user