Skip to content

Commit

Permalink
chore: remove redundant WARNING
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed May 18, 2024
1 parent 2779e0c commit 11a54a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export async function importx<T = any>(_specifier: string | URL, _options: strin
.then(r => r.loader(info, options))
.catch((e) => {
if ('message' in e && /tsconfig\.json['"] not found/.test(e.message)) {
console.warn('WARNING: tsconfig.json not found, fallback to jiti loader:')
console.warn('tsconfig.json not found, fallback to jiti loader:')
console.error(e)
return import('./loaders/jiti')
.then(r => r.loader(info, options))
Expand Down

0 comments on commit 11a54a8

Please sign in to comment.