Skip to content
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

createServerData$ only being transpiled in .jsx/.tsx files #572

Closed
thislooksfun opened this issue Dec 22, 2022 · 1 comment
Closed

createServerData$ only being transpiled in .jsx/.tsx files #572

thislooksfun opened this issue Dec 22, 2022 · 1 comment

Comments

@thislooksfun
Copy link

I don't know whether this is intentional, or even fixable, but if you call createServerData$ outside of a .tsx file, it does not get properly transpiled. I noticed this when I tried to make some helper functions that, since none of them use JSX directly, I put in a .ts file. When looking at the output, however, I noticed that it did not transpire that code correctly. Inside of .tsx files it transpires just fine, as expected, but I would expect that it would work the same in all source files, since they all get lumped into the bundle.

@ryansolid
Copy link
Member

Duplicated #408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants