-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Rollup input extension .jsx #143
Comments
Related to the this issue, TSDX currently does not seem to support importing The fixed configuration looks like this: typescript({
// everything from above, plus ...
include: ['*.(t|j)s+(|x)', '**/*.(t|j)s+(|x)'] // default is ["*.ts+(|x)", "**/*.ts+(|x)"]
}) |
tsdx is quite evidently a typescript-first project. not a priority for me to support .js{x} but lets see what jared says |
That's true, but I was thinking to align tsdx's features with CRA and CRA with |
I'm not having this issue, but I think if |
Isn't the problem here that Typescript doesn't support |
Wanted to update folks on this issue as this was discussed in #443 as well and I've made a few related PRs to improve JSX support. Per #443, TSDX actually already supports JSX, you just need to make sure your
I'm not sure if this is the case or is still the case, but it works in TSDX. That might only be because TSDX runs Babel on top of There were some bugs related to JSX support, but those might not necessarily have caused issues for all JSX users. Related fixes:
|
Current Behavior
The file
src/index.jsx
is not recognized as a Rollup input:https://github.com/palmerhq/tsdx/blob/943648edb06cd131f2c1751120cd1301804b480b/src/index.ts#L64-L69
Expected behavior
It should be possible to have the file
src/index.jsx
as the Rollup input.Suggested solution(s)
Your environment
The text was updated successfully, but these errors were encountered: