mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(kit): don't force config.autoImport
in addServerImports
(#23472)
This commit is contained in:
parent
b95c85b552
commit
9734723aaf
@ -91,9 +91,8 @@ export function addServerImports (imports: Import[]) {
|
||||
const nuxt = useNuxt()
|
||||
nuxt.hook('nitro:config', (config) => {
|
||||
config.imports = config.imports || {}
|
||||
config.imports.autoImport = true
|
||||
if (Array.isArray(config.imports.imports)) {
|
||||
config.imports.imports = [...config.imports.imports, ...imports]
|
||||
config.imports.imports.push(...imports)
|
||||
} else {
|
||||
config.imports.imports = [config.imports.imports, ...imports]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user