fbt icon indicating copy to clipboard operation
fbt copied to clipboard

Make `fbt` work with other compilers like SWC

Open taozhou-glean opened this issue 2 years ago • 2 comments

🚀 Feature Proposal

Right now it seems fbt is tightly coupled with babel, which makes it really hard to use for projects using other compilers, like SWC. It would be great if we can port the babel plugin over there or making fbt work more independent with the compiler.

Motivation

SWC and some other compilers are getting more attention recently because of the performance booster over babel, i think more projects may start adopting them, so having it not coupled with one particular compiler can be very beneficial.

Example

For projects using SWC that wants to use fbt as their i18n solution.

Pitch

it should be part of the fbt framework i believe.

taozhou-glean avatar Jan 23 '23 19:01 taozhou-glean

or let me know if there are already ways to use fbt without relying on babel ;) thanks!

taozhou-glean avatar Jan 23 '23 19:01 taozhou-glean

Also any plan to move fbt to ts ? right now the @types/fbt is quite outdated, it would be great to have better type support from the project directly ;)

taozhou-glean avatar Feb 03 '23 19:02 taozhou-glean