chore: tmp comments to verify loading order - cleanup after confirmed

This commit is contained in:
Nathan Walker
2025-07-14 08:47:45 -07:00
parent 49413e5873
commit 4fe0003eb6
4 changed files with 40 additions and 34 deletions

View File

@@ -1,3 +1,5 @@
// @ts-ignore apps resolve this at runtime with path alias in project bundlers
import appConfig from '~/package.json';
/* eslint-disable prefer-rest-params */
declare let __startCPUProfiler: any;
declare let __stopCPUProfiler: any;
@@ -158,8 +160,9 @@ export function enable(mode: InstrumentationMode = 'counters') {
}
try {
// const appConfig = require('~/package.json');
// @ts-ignore
const appConfig = await import('~/package.json');
// const appConfig = await import('~/package.json');
console.log('profiling appConfig:', appConfig);
if (appConfig && appConfig.profiling) {
enable(appConfig.profiling);