Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Support ts-node #200

Open
lachrist opened this issue Mar 3, 2023 · 0 comments
Open

Support ts-node #200

lachrist opened this issue Mar 3, 2023 · 0 comments

Comments

@lachrist
Copy link
Contributor

lachrist commented Mar 3, 2023

Currently npx appmap-agent-js -- npx ts-node main.ts does not work. This is because we use --loader which changes the default loader from esm to cjs. This is important for the entry point. Normally we always tag the first module loaded as commonjs. But when using ts-node the first module loaded is ts-node entry point. They are doing a hack to make it look like the provided argument is the entry point https://github.com/TypeStrong/ts-node/blob/fd438213ad3b3e1bcabea48627255b8be74c1c24/src/bin.ts#L643. But we are not able to detect that.

NB: ts-node-esm works fine atm.

lachrist added a commit that referenced this issue Mar 3, 2023
NB: `ts-node` fails -- cf: #200
lachrist added a commit that referenced this issue Mar 3, 2023
NB: `ts-node` fails -- cf: #200
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant