From ec8d0a1358018d6c1d4a21125eb6da5890e0c058 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:06:14 +0800 Subject: [PATCH] docs: update deprecated babel plugin --- docs/babel-config.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/babel-config.md b/docs/babel-config.md index b2d4b71b1c86..715669b2b31a 100644 --- a/docs/babel-config.md +++ b/docs/babel-config.md @@ -34,7 +34,7 @@ module.exports = { - `@babel/plugin-transform-runtime` - `@babel/plugin-proposal-decorators` -- `@babel/plugin-proposal-class-properties` +- `@babel/plugin-transform-class-properties` - `babel-plugin-dynamic-import-node`(小程序环境) #### 2. React @@ -166,7 +166,7 @@ import 'core-js/modules/es.string.pad-end' **默认值**:`false` -同时是 `@babel/preset-env`、`@babel/plugin-proposal-class-properties` 的 `loose` 配置项。 +同时是 `@babel/preset-env`、`@babel/plugin-transform-class-properties` 的 `loose` 配置项。 ### debug