Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ node --experimental-transform-types --import="amaro/transform" file.ts

#### Type stripping in dependencies

Contrary to the Node.js [TypeScript support](https://nodejs.org/docs/latest/api/typescript.html#type-stripping-in-dependencies), when used as a loader, Amaro handles TypeScript files inside folders under a `node_modules` path.
When used as a loader, Amaro still relies on Node.js module loading. For this reason when trying to execute files under `node_modules` it throws
`ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING`. As a result, type stripping in dependencies does not work.

### Monorepo usage

Expand Down