Skip to content

Commit

Permalink
Avoid import type modifier
Browse files Browse the repository at this point in the history
When building the types, TS won't transpile this into an older syntax, causing issues for all
consumers that are not on v4.5.
  • Loading branch information
jridgewell committed Feb 11, 2022
1 parent fa03030 commit 829c83a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/remapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type {
DecodedSourceMap,
SourceMapInput,
SourceMapLoader,
LoaderContext,
Options,
} from './types';

Expand Down
8 changes: 2 additions & 6 deletions src/source-map-tree.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { FastStringArray, put } from './fast-string-array';
import { presortedDecodedMap, traceSegment, decodedMappings } from '@jridgewell/trace-mapping';

import {
type TraceMap,
presortedDecodedMap,
traceSegment,
decodedMappings,
} from '@jridgewell/trace-mapping';
import type { TraceMap } from '@jridgewell/trace-mapping';
import type OriginalSource from './original-source';
import type { SourceMapSegment, SourceMapSegmentObject } from './types';

Expand Down
3 changes: 2 additions & 1 deletion src/source-map.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { TraceMap } from '@jridgewell/trace-mapping';
import { encodedMappings, decodedMappings } from '@jridgewell/trace-mapping';

import type { TraceMap } from '@jridgewell/trace-mapping';
import type { DecodedSourceMap, RawSourceMap, Options } from './types';

/**
Expand Down

0 comments on commit 829c83a

Please sign in to comment.