chore: make editor lib external for plugin (#5167)

#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

#### What this PR does / why we need it:

将默认编辑器依赖添加到插件构建库的 external 中,基于 https://github.com/halo-dev/halo/pull/4924

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/5176/head
Ryan Wang 2024-01-10 14:42:23 +08:00 committed by GitHub
parent 0b30c0d98e
commit 05754534e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ export function HaloUIPluginBundlerKit(): Plugin {
"@vueuse/router",
"@halo-dev/shared",
"@halo-dev/components",
"@halo-dev/richtext-editor",
],
output: {
globals: {
@ -52,6 +53,7 @@ export function HaloUIPluginBundlerKit(): Plugin {
"@vueuse/router": "VueUse",
"@halo-dev/console-shared": "HaloConsoleShared",
"@halo-dev/components": "HaloComponents",
"@halo-dev/richtext-editor": "RichTextEditor",
},
extend: true,
},