Skip to content

Commit 93a9bb7

Browse files
committed
remove dynamic import
1 parent 888640e commit 93a9bb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli/src/lib/cpu-profiler.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {readFile} from '@shopify/cli-kit/node/fs';
22
import {Session, type Profiler} from 'node:inspector';
3-
import type {SourceMapConsumer} from 'source-map';
3+
import {SourceMapConsumer} from 'source-map';
44
import {handleMiniOxygenImportFail} from './mini-oxygen/common.js';
55
import {importLocal} from './import-utils.js';
66

@@ -72,7 +72,6 @@ async function enhanceProfileNodes(
7272
sourceMapPath: string,
7373
sourceEntrypoint?: string,
7474
) {
75-
const {SourceMapConsumer} = await import('source-map');
7675
const sourceMap = JSON.parse(await readFile(sourceMapPath));
7776
const smc = await new SourceMapConsumer(sourceMap, 'file://' + sourceMapPath);
7877

templates/debug-cpu-test

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit ba7caab748c004b64fb5f40e6db0bd9770e616be

0 commit comments

Comments
 (0)