-
-
Notifications
You must be signed in to change notification settings - Fork 543
Closed
Description
Search Terms
transpileOnly, allowImportingTsExtensions, typescript 5
Possibly related: #1978
Expected Behavior
allowImportingTsExtensions working with transpileOnly
Actual Behavior
Should work (I think?)
Steps to reproduce the problem
- ✅ Works:
NODE_OPTIONS="--loader ts-node/esm" node index.ts - ❌ Does not work:
NODE_OPTIONS="--loader ts-node/esm/transpile-only" node index.ts
Minimal reproduction
https://github.com/lmiller1990/ts-node-transpile-error
Specifications
ts-node v10.9.1
node v16.19.1
compiler v5.0.2
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"module": "ES2015",
"noEmit": true
}
}
- package.json:
{
"type": "module",
"name": "tsnode",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
}
}
-
Operating system and version: macos ventura
-
If Windows, are you using WSL or WSL2?:
Metadata
Metadata
Assignees
Labels
No labels