diff --git a/packages/taro-cli/templates/default/config/index b/packages/taro-cli/templates/default/config/index index 579a1d5a7565..65293b8b0703 100644 --- a/packages/taro-cli/templates/default/config/index +++ b/packages/taro-cli/templates/default/config/index @@ -16,8 +16,8 @@ const config = { 'env' ], plugins: [ - 'transform-class-properties', 'transform-decorators-legacy', + 'transform-class-properties', 'transform-object-rest-spread' ] } diff --git a/packages/taro-cli/templates/mobx/config/index b/packages/taro-cli/templates/mobx/config/index index d0a1165390fa..72d21bca0a89 100644 --- a/packages/taro-cli/templates/mobx/config/index +++ b/packages/taro-cli/templates/mobx/config/index @@ -16,8 +16,8 @@ const config = { 'env' ], plugins: [ - 'transform-class-properties', 'transform-decorators-legacy', + 'transform-class-properties', 'transform-object-rest-spread' ] } diff --git a/packages/taro-cli/templates/redux/config/index b/packages/taro-cli/templates/redux/config/index index 4a1641e8a7ff..fe483a6970dc 100644 --- a/packages/taro-cli/templates/redux/config/index +++ b/packages/taro-cli/templates/redux/config/index @@ -16,8 +16,8 @@ const config = { 'env' ], plugins: [ - 'transform-class-properties', 'transform-decorators-legacy', + 'transform-class-properties', 'transform-object-rest-spread' ] }