From f047d570c54e81d4a71ea0a900388eb183eaa04e Mon Sep 17 00:00:00 2001 From: luwanquan <1501474302@qq.com> Date: Fri, 13 Dec 2019 02:05:05 +0800 Subject: [PATCH] docs: update README --- README.md | 15 ++------------- README.zh-CN.md | 14 ++------------ 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 8235425..94f3b05 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ const Hello = { ## Prerequisite -Project with `@vue/composition-api` and `@vue/babel-preset-app` installed +Project with `@vue/composition-api` and `@vue/cli-plugin-babel` installed @@ -77,22 +77,11 @@ Project with `@vue/composition-api` and `@vue/babel-preset-app` installed module.exports = { presets: [ "vca-jsx", - "@vue/app" + "@vue/cli-plugin-babel/preset" ] }; ``` - or `.babelrc` - - ```javascript - { - "presets": [ - "vca-jsx", - "@vue/app" - ] - } - ``` - ## Note - Here we need to distinguish between the default `functional` component and the `composition-api-based` `functional` component. diff --git a/README.zh-CN.md b/README.zh-CN.md index 71e2d55..990704c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -77,21 +77,11 @@ const Hello = { module.exports = { presets: [ "vca-jsx", - "@vue/app" + "@vue/cli-plugin-babel/preset" ] }; ``` - - 或 `.babelrc` - - ```javascript - { - "presets": [ - "vca-jsx", - "@vue/app" - ] - } - ``` + ## 注意