-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(bindings/ts): Add transform/strip-only mode #9138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swc-bump:
- dbg-swc
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/eventsource@2.0.2, npm/evp_bytestokey@1.0.3 |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
@kdy1 Thank you for adding this! Is there a way I can test this new mode in the SWC playground? When I go to https://swc.rs/playground and choose |
Fast TS strip is a separate tool, so if you want to try it on the web, we may need to build another playground. The fastest way to test output is adding a test file (or modify one) in https://github.com/swc-project/swc/tree/2fe2feeb1fb0d1776295da28b0af792e2a19da3f/crates/swc_fast_ts_strip/tests and run |
@kdy1 Thanks. I think if |
@GeoffreyBooth Now the SWC playground has one! Thank you, @g-plane ! |
Description:
This PR adds
strip-only
/transform
mode to@swc/wasm-typescript
.strip-only
mode,enum
and TypeScript parameter properties are treated as an invalid syntax.transform
mode, those are transpiled.