Skip to content

Commit

Permalink
Update jiti usage to support Top-Level await syntax (#378)
Browse files Browse the repository at this point in the history
* Bump `jiti` to version 2.4.2

* Update `jiti.import()` usage
  • Loading branch information
aryaemami59 authored Jan 8, 2025
1 parent 4a4de65 commit 6a492c7
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 66 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
2 changes: 1 addition & 1 deletion packages/size-limit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"bytes-iec": "^3.1.1",
"chokidar": "^4.0.1",
"jiti": "^2.1.0",
"jiti": "^2.4.2",
"lilconfig": "^3.1.2",
"nanospinner": "^1.1.0",
"picocolors": "^1.1.0",
Expand Down
126 changes: 63 additions & 63 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a492c7

Please sign in to comment.