Open CyberT33N opened 2 weeks ago
I can use in my tsconfig.json:
To use:
const path = 'test.ts' await import(path)
However, when I will run the same code inside of the Instrumentation I get:
Is the Instrumenation not working with the tsconfig.json?
Instrumenation works with dynamic import of .ts files
Try to import without the .ts extension behind it
// instrumentation.ts export function register() { await import('./instrumentation-node') }
// instrumentation-node.ts console.log('test');
Verify canary release
I can use in my tsconfig.json:
To use:
However, when I will run the same code inside of the Instrumentation I get:
Is the Instrumenation not working with the tsconfig.json?
Expected Behavior
Instrumenation works with dynamic import of .ts files