[ci] format
This commit is contained in:
parent
e85b16e2b3
commit
9fcac8e551
1 changed files with 4 additions and 4 deletions
|
@ -47,14 +47,14 @@ export default function (): AstroIntegration {
|
||||||
},
|
},
|
||||||
'astro:build:setup': ({ vite, target }) => {
|
'astro:build:setup': ({ vite, target }) => {
|
||||||
if (target === 'server') {
|
if (target === 'server') {
|
||||||
if(!vite.ssr) {
|
if (!vite.ssr) {
|
||||||
vite.ssr = {};
|
vite.ssr = {};
|
||||||
}
|
}
|
||||||
if(!vite.ssr.noExternal) {
|
if (!vite.ssr.noExternal) {
|
||||||
vite.ssr.noExternal = [];
|
vite.ssr.noExternal = [];
|
||||||
}
|
}
|
||||||
if(Array.isArray(vite.ssr.noExternal)) {
|
if (Array.isArray(vite.ssr.noExternal)) {
|
||||||
vite.ssr.noExternal.push('lit')
|
vite.ssr.noExternal.push('lit');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue