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

TypeScript support #83

Open
nicolas377 opened this issue Jul 31, 2021 · 7 comments
Open

TypeScript support #83

nicolas377 opened this issue Jul 31, 2021 · 7 comments

Comments

@nicolas377
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
I just found this, and I wanted to ask if TypeScript support is coming in the future.

Describe the solution you'd like
Support for the TypeScript compiler. I can make a pr for it if needed.

Describe alternatives you've considered
It isn't hard to modify the npm scripts to run npx tsc and then xt-build.

Additional context
Could be a options on initial setup.

@nkrusch
Copy link
Contributor

nkrusch commented Aug 26, 2021

You can leave this open, I am considering how it should and could work, but need to get better at typescript first.

In the meantime if you already have setup build from ts -> js that build output can be piped to the build command.

@nkrusch nkrusch reopened this Aug 26, 2021
@nicolas377
Copy link
Collaborator Author

I'm assuming that the best way to implement that would be use tsc with a outFile param.

@nicolas377
Copy link
Collaborator Author

Is it possible that we could use tsc to compile to ESNext, and then use babel to transpile down if needed?

@nkrusch
Copy link
Contributor

nkrusch commented Sep 28, 2021

I think it would be possible to do this now at a project level, the way you have described in the original issue. It is not the ideal experience, but it should work for the time being.

@kelvinsand
Copy link

Guys, I don't understand very well... has the suprote already been added? if not, what would this workaround be like?

@viperfan7
Copy link

Has any work been done to add TypeScript compatibility, or does anyone know of a way to do so on a per-project basis?

@limdingwen
Copy link

limdingwen commented Nov 12, 2023

Please see #204 for an easy workaround (it's just a few character changes to build.json).

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

No branches or pull requests

5 participants