Skip to content

Commit

Permalink
chore: make editor lib external for plugin (#5167)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

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

将默认编辑器依赖添加到插件构建库的 external 中,基于 #4924

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

```release-note
None
```
  • Loading branch information
ruibaby authored Jan 10, 2024
1 parent 0b30c0d commit 0575453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions console/packages/ui-plugin-bundler-kit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function HaloUIPluginBundlerKit(): Plugin {
"@vueuse/router",
"@halo-dev/shared",
"@halo-dev/components",
"@halo-dev/richtext-editor",
],
output: {
globals: {
Expand All @@ -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,
},
Expand Down

0 comments on commit 0575453

Please sign in to comment.