From 1cd6b05028726fc9362967c74682dd908c752d10 Mon Sep 17 00:00:00 2001 From: kakachake <282281884@qq.com> Date: Wed, 8 Jun 2022 10:35:23 +0800 Subject: [PATCH 1/9] docs(plugin-vue-jsx): update the options --- packages/plugin-vue-jsx/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index f6159cf3a82cab..30bd889b60bbe0 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -17,7 +17,23 @@ export default { ## Options -See [@vue/babel-plugin-jsx](https://github.com/vuejs/jsx-next). +There has been a few own plugins. + +### include + +Type: ` | string | RegExp | null;` + +Default: `/\.[jt]sx$/` + +if you want to add extensions option to vue-jsx plugin, you can use `include` + +### exclude + +Type: ` | string | RegExp | null;` + +Default: `undefined` + +See [@vue/babel-plugin-jsx](https://github.com/vuejs/jsx-next) for other plugins. ## HMR Detection From 6aef7cb26b367f0711df3cb9ab9c7bc46ef231a1 Mon Sep 17 00:00:00 2001 From: kakachake <282281884@qq.com> Date: Wed, 8 Jun 2022 10:53:17 +0800 Subject: [PATCH 2/9] docs(plugin-vue-jsx): update the options --- packages/plugin-vue-jsx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index 30bd889b60bbe0..3f3300f9a9e47b 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -17,7 +17,7 @@ export default { ## Options -There has been a few own plugins. +There has been a few own options. ### include From 7f752f81ef968fb78a66585e91d327a17f11d227 Mon Sep 17 00:00:00 2001 From: kakachake <34683677+kakachake@users.noreply.github.com> Date: Wed, 8 Jun 2022 15:59:22 +0800 Subject: [PATCH 3/9] Update packages/plugin-vue-jsx/README.md Co-authored-by: Bjorn Lu --- packages/plugin-vue-jsx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index 3f3300f9a9e47b..444b76520a9fd9 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -33,7 +33,7 @@ Type: ` | string | RegExp | null;` Default: `undefined` -See [@vue/babel-plugin-jsx](https://github.com/vuejs/jsx-next) for other plugins. +> See [@vue/babel-plugin-jsx](https://github.com/vuejs/jsx-next) for other options. ## HMR Detection From c9cf50717ff8bb1589cdab33c0577ec5b7827117 Mon Sep 17 00:00:00 2001 From: kakachake <34683677+kakachake@users.noreply.github.com> Date: Wed, 8 Jun 2022 15:59:49 +0800 Subject: [PATCH 4/9] Update packages/plugin-vue-jsx/README.md Co-authored-by: Bjorn Lu --- packages/plugin-vue-jsx/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index 444b76520a9fd9..cfb4175b076087 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -33,6 +33,8 @@ Type: ` | string | RegExp | null;` Default: `undefined` +A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files to be ignored by the plugin. + > See [@vue/babel-plugin-jsx](https://github.com/vuejs/jsx-next) for other options. ## HMR Detection From 1f248b19ee47fe14c4f5e242955d5a7297a77408 Mon Sep 17 00:00:00 2001 From: kakachake <34683677+kakachake@users.noreply.github.com> Date: Wed, 8 Jun 2022 15:59:54 +0800 Subject: [PATCH 5/9] Update packages/plugin-vue-jsx/README.md Co-authored-by: Bjorn Lu --- packages/plugin-vue-jsx/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index cfb4175b076087..b42cc2244be720 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -17,8 +17,6 @@ export default { ## Options -There has been a few own options. - ### include Type: ` | string | RegExp | null;` From d5332b26fc573ba388625c542b02805bc3285e92 Mon Sep 17 00:00:00 2001 From: kakachake <34683677+kakachake@users.noreply.github.com> Date: Wed, 8 Jun 2022 16:12:26 +0800 Subject: [PATCH 6/9] Update packages/plugin-vue-jsx/README.md sorry, I overlooked this Co-authored-by: Tony Trinh --- packages/plugin-vue-jsx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index b42cc2244be720..5121d7c4da77c7 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -19,7 +19,7 @@ export default { ### include -Type: ` | string | RegExp | null;` +Type: `(string | RegExp)[] | string | RegExp | null;` Default: `/\.[jt]sx$/` From 22202f3e2f09bbf6eacea689bb078f0a29dc11ed Mon Sep 17 00:00:00 2001 From: kakachake <34683677+kakachake@users.noreply.github.com> Date: Wed, 8 Jun 2022 16:13:05 +0800 Subject: [PATCH 7/9] Update packages/plugin-vue-jsx/README.md Co-authored-by: Tony Trinh --- packages/plugin-vue-jsx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index 5121d7c4da77c7..46c83678515d34 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -27,7 +27,7 @@ if you want to add extensions option to vue-jsx plugin, you can use `include` ### exclude -Type: ` | string | RegExp | null;` +Type: `(string | RegExp)[] | string | RegExp | null;` Default: `undefined` From a0e81b555ca9ec2af538b017bf16976435d76975 Mon Sep 17 00:00:00 2001 From: kakachake <34683677+kakachake@users.noreply.github.com> Date: Wed, 8 Jun 2022 16:13:14 +0800 Subject: [PATCH 8/9] Update packages/plugin-vue-jsx/README.md Co-authored-by: Bjorn Lu --- packages/plugin-vue-jsx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index 46c83678515d34..29e8f41d2bb353 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -23,7 +23,7 @@ Type: `(string | RegExp)[] | string | RegExp | null;` Default: `/\.[jt]sx$/` -if you want to add extensions option to vue-jsx plugin, you can use `include` +A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files the plugin should operate on. ### exclude From c2406480a0fd04eb433440e6bad881ff867751f6 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Wed, 8 Jun 2022 16:51:35 +0800 Subject: [PATCH 9/9] chore: remove semicolon --- packages/plugin-vue-jsx/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-vue-jsx/README.md b/packages/plugin-vue-jsx/README.md index 29e8f41d2bb353..c75e6d786f67b6 100644 --- a/packages/plugin-vue-jsx/README.md +++ b/packages/plugin-vue-jsx/README.md @@ -19,7 +19,7 @@ export default { ### include -Type: `(string | RegExp)[] | string | RegExp | null;` +Type: `(string | RegExp)[] | string | RegExp | null` Default: `/\.[jt]sx$/` @@ -27,7 +27,7 @@ A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patt ### exclude -Type: `(string | RegExp)[] | string | RegExp | null;` +Type: `(string | RegExp)[] | string | RegExp | null` Default: `undefined`