From 047785bb3f734d32c13338eb5fffa270a3d59243 Mon Sep 17 00:00:00 2001 From: virgosoy Date: Fri, 28 May 2021 13:15:43 +0800 Subject: [PATCH 1/4] fix: include/exclude options for vue-jsx .d.ts --- packages/plugin-vue-jsx/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/index.d.ts b/packages/plugin-vue-jsx/index.d.ts index 4948b9551ef181..d647ce26c794eb 100644 --- a/packages/plugin-vue-jsx/index.d.ts +++ b/packages/plugin-vue-jsx/index.d.ts @@ -1,6 +1,12 @@ import { Plugin } from 'vite' import { VueJSXPluginOptions } from '@vue/babel-plugin-jsx' +import { FilterPattern } from '@rollup/pluginutils' -declare function createPlugin(options?: VueJSXPluginOptions): Plugin +declare interface CommonOptions{ + include?: FilterPattern; + exclude?: FilterPattern; +} + +declare function createPlugin(options?: VueJSXPluginOptions & CommonOptions): Plugin export default createPlugin From 8382294ac0fd11142c3424453d36c6f44f52bfb6 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 28 May 2021 14:12:00 +0200 Subject: [PATCH 2/4] chore: apply formatting --- packages/plugin-vue-jsx/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/index.d.ts b/packages/plugin-vue-jsx/index.d.ts index d647ce26c794eb..b45cef1bf0d828 100644 --- a/packages/plugin-vue-jsx/index.d.ts +++ b/packages/plugin-vue-jsx/index.d.ts @@ -2,7 +2,7 @@ import { Plugin } from 'vite' import { VueJSXPluginOptions } from '@vue/babel-plugin-jsx' import { FilterPattern } from '@rollup/pluginutils' -declare interface CommonOptions{ +declare interface CommonOptions { include?: FilterPattern; exclude?: FilterPattern; } From 57298c0db933067c836b7a325de70e674e73e142 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 30 May 2021 11:42:51 +0800 Subject: [PATCH 3/4] Update packages/plugin-vue-jsx/index.d.ts --- packages/plugin-vue-jsx/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-vue-jsx/index.d.ts b/packages/plugin-vue-jsx/index.d.ts index b45cef1bf0d828..73d3f30d61c6a0 100644 --- a/packages/plugin-vue-jsx/index.d.ts +++ b/packages/plugin-vue-jsx/index.d.ts @@ -3,8 +3,8 @@ import { VueJSXPluginOptions } from '@vue/babel-plugin-jsx' import { FilterPattern } from '@rollup/pluginutils' declare interface CommonOptions { - include?: FilterPattern; - exclude?: FilterPattern; + include?: FilterPattern + exclude?: FilterPattern } declare function createPlugin(options?: VueJSXPluginOptions & CommonOptions): Plugin From 98445e2cb9a6ba279d989b9ea6d1a505a4bc4613 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 30 May 2021 11:44:29 +0800 Subject: [PATCH 4/4] chore: rename --- packages/plugin-vue-jsx/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/plugin-vue-jsx/index.d.ts b/packages/plugin-vue-jsx/index.d.ts index 73d3f30d61c6a0..22aad9b5eecb45 100644 --- a/packages/plugin-vue-jsx/index.d.ts +++ b/packages/plugin-vue-jsx/index.d.ts @@ -2,11 +2,13 @@ import { Plugin } from 'vite' import { VueJSXPluginOptions } from '@vue/babel-plugin-jsx' import { FilterPattern } from '@rollup/pluginutils' -declare interface CommonOptions { +declare interface FilterOptions { include?: FilterPattern exclude?: FilterPattern } -declare function createPlugin(options?: VueJSXPluginOptions & CommonOptions): Plugin +declare function createPlugin( + options?: VueJSXPluginOptions & FilterOptions +): Plugin export default createPlugin