refactor: ts in vendor use extensionless import

This commit is contained in:
imccyu
2026-06-17 23:18:25 +08:00
parent 6f6e0517d4
commit 29e674bfea
8 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { Message } from 'cordis'
import { ConsoleExporter as Base } from './shared.js'
import { ConsoleExporter as Base } from './shared'
/** Re-export shared console exporter config and base implementation. */
export * from './shared.js'
export * from './shared'
/** Browser console exporter that dispatches to native console methods. */
export class ConsoleExporter extends Base {
+2 -2
View File
@@ -1,10 +1,10 @@
import { Formatter } from 'cordis'
import { inspect } from 'node:util'
import supportsColor from 'supports-color'
import { ConsoleExporter as Base } from './shared.js'
import { ConsoleExporter as Base } from './shared'
/** Re-export shared console exporter config and base implementation. */
export * from './shared.js'
export * from './shared'
const inspectFormatter: Formatter = (value, target) => {
return inspect(value, { colors: !!target.colors, depth: Infinity, compact: true, breakLength: Infinity })