mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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:/,
|
||||
/\.ts$/,
|
||||
...ExternalsDefaults.inline || [],
|
||||
...viteServer.config.ssr.noExternal as string[]
|
||||
...Array.isArray(viteServer.config.ssr.noExternal) ? viteServer.config.ssr.noExternal : []
|
||||
],
|
||||
external: [
|
||||
...viteServer.config.ssr.external || [],
|
||||
|
Loading…
Reference in New Issue
Block a user