Skip to content

Commit

Permalink
Update jiti.import() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jan 8, 2025
1 parent 00f3e41 commit d48c1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/size-limit/get-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ const tsLoader = async filePath => {
interopDefault: false
})

let config = await jiti.import(filePath)
let config = await jiti.import(filePath, { default: true })

return config?.default ?? config
return config
}

export default async function getConfig(plugins, process, args, pkg) {
Expand Down

0 comments on commit d48c1d7

Please sign in to comment.