mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +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)) {
|
if (filePath && existsSync(filePath)) {
|
||||||
let loadedConfig: SchemaDefinition
|
let loadedConfig: SchemaDefinition
|
||||||
try {
|
try {
|
||||||
loadedConfig = _resolveSchema(filePath)
|
// TODO: fix type for second argument of `import`
|
||||||
|
loadedConfig = await _resolveSchema.import(filePath, {}) as SchemaDefinition
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
'Unable to load schema from',
|
'Unable to load schema from',
|
||||||
|
Loading…
Reference in New Issue
Block a user