diff --git a/core/instrument/src/babel/extract-component.ts b/core/instrument/src/babel/extract-component.ts index f3d4bcaac..4f121fa1a 100644 --- a/core/instrument/src/babel/extract-component.ts +++ b/core/instrument/src/babel/extract-component.ts @@ -184,7 +184,7 @@ const componentRelatedMetrics = async ( const dependents = component.localDependencies ? Object.keys(component.localDependencies) .filter(f => f.startsWith(`.${path.sep}`)) - .map(f => path.resolve(componetFolder, f)) + .map(f => require.resolve(f, { paths: [componetFolder] })) : []; const testResults = await extractTests( [component.request, ...dependents],