From cbbcccbdecf25eb62bb5fc50de6049f007f6105f Mon Sep 17 00:00:00 2001 From: Mrpandaliu <2316371523@qq.com> Date: Mon, 27 Feb 2023 16:47:37 +0800 Subject: [PATCH 1/3] feat: interface optional --- packages/plugin-pha/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-pha/src/index.ts b/packages/plugin-pha/src/index.ts index 6ed5da8ede..99e47b6048 100644 --- a/packages/plugin-pha/src/index.ts +++ b/packages/plugin-pha/src/index.ts @@ -17,8 +17,8 @@ export type Compiler = (options: { }, buildOptions: Parameters[1]) => Promise; interface PluginOptions { - template: boolean; - preload: boolean; + template?: boolean; + preload?: boolean; } function getDevPath(url: string): string { From cc3ea7000591f3ea65407b32a8db8499474c63f4 Mon Sep 17 00:00:00 2001 From: Mrpandaliu <2316371523@qq.com> Date: Mon, 27 Feb 2023 16:49:00 +0800 Subject: [PATCH 2/3] chore: add changesets --- .changeset/eleven-spiders-yell.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/eleven-spiders-yell.md diff --git a/.changeset/eleven-spiders-yell.md b/.changeset/eleven-spiders-yell.md new file mode 100644 index 0000000000..eba4a47a7f --- /dev/null +++ b/.changeset/eleven-spiders-yell.md @@ -0,0 +1,5 @@ +--- +'@ice/plugin-pha': major +--- + +fix: support plugin-pha interface optional From 7b47255d8d16c24c2f2ff144ef04845e644f8775 Mon Sep 17 00:00:00 2001 From: Mrpandaliu <2316371523@qq.com> Date: Mon, 27 Feb 2023 17:24:12 +0800 Subject: [PATCH 3/3] fix: change version type --- .changeset/eleven-spiders-yell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/eleven-spiders-yell.md b/.changeset/eleven-spiders-yell.md index eba4a47a7f..ba7264facf 100644 --- a/.changeset/eleven-spiders-yell.md +++ b/.changeset/eleven-spiders-yell.md @@ -1,5 +1,5 @@ --- -'@ice/plugin-pha': major +'@ice/plugin-pha': patch --- fix: support plugin-pha interface optional