Open alex-kinokon opened 4 years ago
Hey @proteriax! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite."
Hey @proteriax! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
The REPL does not add filename: "test.tsx"
option, required by @babel/plugin-syntax-typescript
. As a workaround, please use the presets > typescript
option.
You can reproduce it even with filename
set on Node.js. Please see this example.
In Babel 7 you have to enable the isTSX
option: https://babeljs.io/docs/en/babel-plugin-syntax-typescript#istsx
We acknowledge that
{
"plugins": [
"@babel/plugin-syntax-jsx",
"@babel/plugin-syntax-typescript"
]
}
is more natural and it is now supported on Babel 8.
Bug Report
Current behavior
Input Code
Minimum reproduction sample on REPL.
Expected behavior Nothing happens.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Environment