Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 829c83a

Browse files
committed
Avoid import type modifier
When building the types, TS won't transpile this into an older syntax, causing issues for all consumers that are not on v4.5.
1 parent fa03030 commit 829c83a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/remapping.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type {
99
DecodedSourceMap,
1010
SourceMapInput,
1111
SourceMapLoader,
12+
LoaderContext,
1213
Options,
1314
} from './types';
1415

src/source-map-tree.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { FastStringArray, put } from './fast-string-array';
2+
import { presortedDecodedMap, traceSegment, decodedMappings } from '@jridgewell/trace-mapping';
23

3-
import {
4-
type TraceMap,
5-
presortedDecodedMap,
6-
traceSegment,
7-
decodedMappings,
8-
} from '@jridgewell/trace-mapping';
4+
import type { TraceMap } from '@jridgewell/trace-mapping';
95
import type OriginalSource from './original-source';
106
import type { SourceMapSegment, SourceMapSegmentObject } from './types';
117

src/source-map.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import type { TraceMap } from '@jridgewell/trace-mapping';
21
import { encodedMappings, decodedMappings } from '@jridgewell/trace-mapping';
2+
3+
import type { TraceMap } from '@jridgewell/trace-mapping';
34
import type { DecodedSourceMap, RawSourceMap, Options } from './types';
45

56
/**

0 commit comments

Comments
 (0)