node-clinic icon indicating copy to clipboard operation
node-clinic copied to clipboard

Transpiled files are classified as "v8"

Open ankon opened this issue 5 years ago • 2 comments

https://github.com/nearform/node-clinic-flame/blob/adb5900cf9f77eff50646f42f5a0c35e1a826603/analysis/frame-node.js#L127

I'm running applications written in TypeScript through the ts-node wrapper, and that works reasonably well -- except that all application code gets classified as 'v8'. I now looked at this problem, and it seems that this is actually because getCoreOrV8Type checks for '.m?js'.

I'm not completely sure how this could be fixed, potentially this could check whether the file is inside the application directory and is not a dependency?

ankon avatar Sep 02 '19 16:09 ankon

@ankon - Typescript is not currently supported. You need to supply Flame with the built JS directory.

DylanC avatar Feb 17 '20 10:02 DylanC

Dup of clinicjs/node-clinic#440

DylanC avatar Feb 24 '20 11:02 DylanC