Skip to content

Commit

Permalink
fix: upgrade importx
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 29, 2024
1 parent 6860ddc commit ba27d7e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@antfu/utils": "^0.7.10",
"defu": "^6.1.4",
"importx": "^0.4.1"
"importx": "^0.4.2"
},
"devDependencies": {
"@antfu/eslint-config": "^2.24.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ async function loadConfigFile<T>(filepath: string, source: LoadConfigSource<T>):
cache: false,
loader: source.loader || 'auto',
fallbackLoaders: source.fallbackLoaders,
loaderOptions: {
jiti: {
interopDefault: true,
},
}

Check failure on line 156 in src/index.ts

View workflow job for this annotation

GitHub Actions / build (lts/*, ubuntu-latest)

Missing trailing comma
})
dependencies = r.getModuleInfo(mod)?.dependencies
return interopDefault(mod)
Expand Down

0 comments on commit ba27d7e

Please sign in to comment.