Skip to content

Commit c34fe70

Browse files
Fix new source-map-explorer way of importing ts types
1 parent a2d91e1 commit c34fe70

File tree

1 file changed

+4
-1
lines changed
  • packages/plugin-source-map-explorer/src

1 file changed

+4
-1
lines changed

packages/plugin-source-map-explorer/src/mod.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { resolvePath } from '@modus/gimbal-core/lib/utils/fs';
22
import bytes from 'bytes';
33
import globby from 'globby';
44
import minimatch from 'minimatch';
5-
import explore, { ExploreBundleResult, ExploreResult } from 'source-map-explorer';
5+
// @ts-ignore
6+
import explore from 'source-map-explorer';
7+
// looks like their types are nested in the src dir of dist...
8+
import { ExploreBundleResult, ExploreResult } from 'source-map-explorer/dist/src';
69
import { Report, ReportItem } from '@/typings/command';
710
import { PluginOptions } from '@/typings/config/plugin';
811
import { Options } from '@/typings/module/registry';

0 commit comments

Comments
 (0)