mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: tmp comments to verify loading order - cleanup after confirmed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user