💻
How are you using Babel?
@babel/cli
Input code
import { type T } from "./mod";
Configuration file name
babel.config.json
Configuration
{
"presets": [
["@babel/preset-typescript", { "onlyRemoveTypeImports": true }]
]
}
Current and expected behavior
Current behavior:
Expected behavior / tsc with "isolatedModules": true and "importsNotUsedAsValues": "error":
Environment
System:
OS: Linux 6.1 Arch Linux
Binaries:
Node: 19.3.0 - /usr/bin/node
Yarn: 4.0.0-rc.35 - ~/.local/bin/yarn
npm: 8.19.2 - /usr/bin/npm
npmPackages:
@babel/cli: ^7.20.7 => 7.20.7
@babel/core: ^7.20.12 => 7.20.12
@babel/preset-typescript: ^7.18.6 => 7.18.6
Possible solution
No response
Additional context
microsoft/TypeScript#47118 (comment)
💻
How are you using Babel?
@babel/cli
Input code
Configuration file name
babel.config.json
Configuration
{ "presets": [ ["@babel/preset-typescript", { "onlyRemoveTypeImports": true }] ] }Current and expected behavior
Current behavior:
// emptyExpected behavior / tsc with
"isolatedModules": trueand"importsNotUsedAsValues": "error":Environment
Possible solution
No response
Additional context
microsoft/TypeScript#47118 (comment)