mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(cli): remove @babel/plugin-transform-runtime
This commit is contained in:
parent
93559a5741
commit
5ac2033e2d
@ -292,24 +292,11 @@ module.exports = {
|
|||||||
|
|
||||||
- @babel/preset-env(不含 core-js)
|
- @babel/preset-env(不含 core-js)
|
||||||
- @babel/preset-typescript
|
- @babel/preset-typescript
|
||||||
- @babel/plugin-transform-runtime
|
|
||||||
- @babel/plugin-transform-object-assign
|
- @babel/plugin-transform-object-assign
|
||||||
- @babel/plugin-proposal-optional-chaining
|
- @babel/plugin-proposal-optional-chaining
|
||||||
- @babel/plugin-proposal-nullish-coalescing-operator
|
- @babel/plugin-proposal-nullish-coalescing-operator
|
||||||
- @vue/babel-preset-jsx
|
- @vue/babel-preset-jsx
|
||||||
|
|
||||||
### 依赖
|
|
||||||
|
|
||||||
由于使用了 `@babel/plugin-transform-runtime` 来优化 Babel 的 helper 函数,你需要将 `@babel/runtime` 添加到 `package.json` 的依赖项:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "7.x"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Postcss
|
## Postcss
|
||||||
|
|
||||||
通过根目录下的`postcss.config.js`文件可以对 Postcss 进行配置。
|
通过根目录下的`postcss.config.js`文件可以对 Postcss 进行配置。
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.12.10",
|
"@babel/core": "^7.12.10",
|
||||||
"@babel/plugin-transform-runtime": "^7.12.10",
|
|
||||||
"@babel/preset-env": "^7.12.11",
|
"@babel/preset-env": "^7.12.11",
|
||||||
"@babel/preset-typescript": "^7.12.7",
|
"@babel/preset-typescript": "^7.12.7",
|
||||||
"@docsearch/css": "3.0.0-alpha.33",
|
"@docsearch/css": "3.0.0-alpha.33",
|
||||||
|
@ -27,13 +27,6 @@ module.exports = function (api?: ConfigAPI, options: PresetOption = {}) {
|
|||||||
require('../compiler/babel-preset-vue-ts'),
|
require('../compiler/babel-preset-vue-ts'),
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
|
||||||
require.resolve('@babel/plugin-transform-runtime'),
|
|
||||||
{
|
|
||||||
corejs: false,
|
|
||||||
useESModules,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
require.resolve('babel-plugin-import'),
|
require.resolve('babel-plugin-import'),
|
||||||
{
|
{
|
||||||
|
@ -791,15 +791,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/helper-plugin-utils" "^7.10.4"
|
"@babel/helper-plugin-utils" "^7.10.4"
|
||||||
|
|
||||||
"@babel/plugin-transform-runtime@^7.12.10":
|
|
||||||
version "7.12.10"
|
|
||||||
resolved "https://registry.npm.taobao.org/@babel/plugin-transform-runtime/download/@babel/plugin-transform-runtime-7.12.10.tgz?cache=0&sync_timestamp=1607569369088&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-transform-runtime%2Fdownload%2F%40babel%2Fplugin-transform-runtime-7.12.10.tgz#af0fded4e846c4b37078e8e5d06deac6cd848562"
|
|
||||||
integrity sha1-rw/e1OhGxLNweOjl0G3qxs2EhWI=
|
|
||||||
dependencies:
|
|
||||||
"@babel/helper-module-imports" "^7.12.5"
|
|
||||||
"@babel/helper-plugin-utils" "^7.10.4"
|
|
||||||
semver "^5.5.1"
|
|
||||||
|
|
||||||
"@babel/plugin-transform-shorthand-properties@^7.12.1":
|
"@babel/plugin-transform-shorthand-properties@^7.12.1":
|
||||||
version "7.12.1"
|
version "7.12.1"
|
||||||
resolved "https://registry.npm.taobao.org/@babel/plugin-transform-shorthand-properties/download/@babel/plugin-transform-shorthand-properties-7.12.1.tgz?cache=0&sync_timestamp=1602801648312&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-transform-shorthand-properties%2Fdownload%2F%40babel%2Fplugin-transform-shorthand-properties-7.12.1.tgz#0bf9cac5550fce0cfdf043420f661d645fdc75e3"
|
resolved "https://registry.npm.taobao.org/@babel/plugin-transform-shorthand-properties/download/@babel/plugin-transform-shorthand-properties-7.12.1.tgz?cache=0&sync_timestamp=1602801648312&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-transform-shorthand-properties%2Fdownload%2F%40babel%2Fplugin-transform-shorthand-properties-7.12.1.tgz#0bf9cac5550fce0cfdf043420f661d645fdc75e3"
|
||||||
@ -8989,7 +8980,7 @@ semver-diff@^3.1.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
semver "^6.3.0"
|
semver "^6.3.0"
|
||||||
|
|
||||||
"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0:
|
"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.6.0:
|
||||||
version "5.7.1"
|
version "5.7.1"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
||||||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
||||||
|
Loading…
x
Reference in New Issue
Block a user