We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 888640e commit 1681e50Copy full SHA for 1681e50
packages/cli/src/lib/cpu-profiler.ts
@@ -1,6 +1,6 @@
1
import {readFile} from '@shopify/cli-kit/node/fs';
2
import {Session, type Profiler} from 'node:inspector';
3
-import type {SourceMapConsumer} from 'source-map';
+import {SourceMapConsumer} from 'source-map';
4
import {handleMiniOxygenImportFail} from './mini-oxygen/common.js';
5
import {importLocal} from './import-utils.js';
6
@@ -72,7 +72,6 @@ async function enhanceProfileNodes(
72
sourceMapPath: string,
73
sourceEntrypoint?: string,
74
) {
75
- const {SourceMapConsumer} = await import('source-map');
76
const sourceMap = JSON.parse(await readFile(sourceMapPath));
77
const smc = await new SourceMapConsumer(sourceMap, 'file://' + sourceMapPath);
78
0 commit comments