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

tsc --erasableSyntaxOnly #8701

Open
Boshen opened this issue Jan 25, 2025 · 3 comments
Open

tsc --erasableSyntaxOnly #8701

Boshen opened this issue Jan 25, 2025 · 3 comments
Labels
C-enhancement Category - New feature or request

Comments

@Boshen
Copy link
Member

Boshen commented Jan 25, 2025

See

@Boshen Boshen added the C-enhancement Category - New feature or request label Jan 25, 2025
@re-taro
Copy link
Contributor

re-taro commented Jan 25, 2025

@Boshen

I would like to work on this and align our understanding. Since --erasableSyntaxOnly is a feature that causes tsc to throw an error for syntax that requires transformation, where in oxc_transformer would be the most natural place to test this? The tasks/transform_conformance does not meet this requirement as it relies on transpiled results.

@Boshen
Copy link
Member Author

Boshen commented Jan 25, 2025

@Boshen

I would like to work on this and align our understanding. Since --erasableSyntaxOnly is a feature that causes tsc to throw an error for syntax that requires transformation, where in oxc_transformer would be the most natural place to test this? The tasks/transform_conformance does not meet this requirement as it relies on transpiled results.

I haven't looked into the details yet, but I think the goal is to make ts output similar to https://github.com/bloomberg/ts-blank-space so we can load it into node.js via --experimental-strip-types
https://nodejs.org/en/learn/typescript/run-natively

Please don't start anything yet, I need to talk to the team first.

@re-taro
Copy link
Contributor

re-taro commented Jan 25, 2025

Sorry for the premature 🙏

@Boshen Boshen changed the title transformer: --erasableSyntaxOnly tsc --erasableSyntaxOnly Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category - New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants