Repository navigation
feat!: support jsx, ts and tsx via oxc transform by default - #1364
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1364 +/- ##
==========================================
+ Coverage 85.64% 85.74% +0.09%
==========================================
Files 144 145 +1
Lines 7239 7295 +56
==========================================
+ Hits 6200 6255 +55
- Misses 1039 1040 +1 ☔ View full report in Codecov by Sentry. |
Benchmarks Rust |
CodSpeed Performance ReportMerging #1364 will not alter performanceComparing Summary
|
|
We need a feature toggle using an environment variable, turned off by default. |
Let's discuss this topic next monday, and we also need to discuss how to configure |
b90d148 to
277c317
Compare
jsx, ts and tsx loaderjsx, ts and tsx via oxc transform
|
Ready for review, But still wait |
It's ok for
|
a2aeb63 to
27cb0cd
Compare
27cb0cd to
6e33184
Compare
| rayon = "1.10.0" | ||
| regex = "1.10.5" | ||
| rustc-hash = "1.1.0" | ||
| rustc-hash = { git = "https://github.com/rust-lang/rustc-hash" } # v1.2.0 |
6e33184 to
c3165ba
Compare
| ("jsx".to_string(), ModuleType::Jsx), | ||
| ("ts".to_string(), ModuleType::Ts), | ||
| ("tsx".to_string(), ModuleType::Tsx), | ||
| ("txt".to_string(), ModuleType::Text), |
c3165ba to
af19848
Compare
I think we should move that crate into rolldown ... |
I'm not sure the if best way to solve this is moving crate. We sooner or later will met the similar case with not having the auth to move crates around. We need figure out how we met this gotcha and how to prevent it. What's the best practice to solve this kind of problem? I have seen putting efforts on wrong direction without reviewing just cause more problems in the future. @underfin wants to avoid converting cost between The error is caused by treating oxc's
The solution I propose: If we consider
|
|
Yeah either decouple string_wizard, expose things via traits. Or, relax the version constraint to |
hyfdev
left a comment
There was a problem hiding this comment.
Let's merge it first. I think it's ok we don't have a feature gate for this. Let's start to accept feedback of bugs.
|
@IWANABETHATGUY you may start enable related ts tests of esbuild. I will soon make the rolldown's self-compiling using oxc ts transfomer and drop the esbuild plugin. |
jsx, ts and tsx via oxc transformjsx, ts and tsx via oxc transform by default
Carry reshaped export HMR patches (`reshaped?.(all, unheld)`) with moved-binding, native-cell, TLA, and link-failure reload guards (rolldown#1352), and port production temporal read proofs, native unwrapped engine TDZ enforcement, and nameless minified `__checkTDZ` checks gated on compatibility temporal mode so upstream ordinary builds stay unchanged (rolldown#1364). Co-authored-by: Copilot App <[email protected]>
Description
I'm not familiar with rolldown, where should I place the
transform?