Skip to content

Commit 2ad35c6

Browse files
authored
Merge pull request #385 from dev-five-git/add-no-external
Add no external
2 parents ba2feeb + 37bf690 commit 2ad35c6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/rude-worlds-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/vite-plugin": patch
3+
---
4+
5+
Add noExternal for library

packages/vite-plugin/src/plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ export function DevupUI({
110110
optimizeDeps: {
111111
exclude: include,
112112
},
113+
ssr: {
114+
noExternal: [...include, /@devup-ui/],
115+
},
113116
}
114117
if (extractCss) {
115118
ret['build'] = {

0 commit comments

Comments
 (0)