mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 17:07:22 +00:00
fix(vite): handle non-iterable noExternal
option (#19256)
This commit is contained in:
parent
f16cce8824
commit
57b8ff5b6c
@ -8,7 +8,7 @@ export function createIsExternal (viteServer: ViteDevServer, rootDir: string) {
|
|||||||
/virtual:/,
|
/virtual:/,
|
||||||
/\.ts$/,
|
/\.ts$/,
|
||||||
...ExternalsDefaults.inline || [],
|
...ExternalsDefaults.inline || [],
|
||||||
...viteServer.config.ssr.noExternal as string[]
|
...Array.isArray(viteServer.config.ssr.noExternal) ? viteServer.config.ssr.noExternal : []
|
||||||
],
|
],
|
||||||
external: [
|
external: [
|
||||||
...viteServer.config.ssr.external || [],
|
...viteServer.config.ssr.external || [],
|
||||||
|
Loading…
Reference in New Issue
Block a user