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" - ] - } - ``` + ## 注意