mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
refactor(nuxt): opt-in to future jiti.import
for schema (#24526)
This commit is contained in:
parent
228d35bdd5
commit
7664d1d457
@ -104,7 +104,8 @@ export default defineNuxtModule({
|
||||
if (filePath && existsSync(filePath)) {
|
||||
let loadedConfig: SchemaDefinition
|
||||
try {
|
||||
loadedConfig = _resolveSchema(filePath)
|
||||
// TODO: fix type for second argument of `import`
|
||||
loadedConfig = await _resolveSchema.import(filePath, {}) as SchemaDefinition
|
||||
} catch (err) {
|
||||
logger.warn(
|
||||
'Unable to load schema from',
|
||||
|
Loading…
Reference in New Issue
Block a user