From 55474e39eea1f40b94b5059049ef129f89a1bf7f Mon Sep 17 00:00:00 2001 From: 10Derozan <fupeng.antik@gmail.com> Date: Thu, 21 Mar 2024 19:32:52 +0800 Subject: [PATCH] fix(preview): add user builderPlugin to iframe builder (#838) --- .changeset/strange-months-glow.md | 5 +++++ packages/plugin-preview/src/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/strange-months-glow.md diff --git a/.changeset/strange-months-glow.md b/.changeset/strange-months-glow.md new file mode 100644 index 000000000..f2aba4403 --- /dev/null +++ b/.changeset/strange-months-glow.md @@ -0,0 +1,5 @@ +--- +'@rspress/plugin-preview': patch +--- + +fix: add user builderPlugin to iframe builder diff --git a/packages/plugin-preview/src/index.ts b/packages/plugin-preview/src/index.ts index 7fe71290b..fe93274bf 100644 --- a/packages/plugin-preview/src/index.ts +++ b/packages/plugin-preview/src/index.ts @@ -123,6 +123,7 @@ export function pluginPreview(options?: Options): RspressPlugin { // not copy files again copy: undefined, }, + plugins: config?.builderPlugins, }, builderConfig, );