formatjs
/ react-intl
transformer plugin
#13592
renchap
started this conversation in
Feature Request
Replies: 1 comment
-
Just a side note: JS plugins are coming soon to the linter. They will eventually come to transformer too, but that's some time off I'm afraid. It's rather more complicated than you might think. Problem is moving ASTs between Rust and JS without absolutely murdering performance. We have a novel solution to this problem which cuts the overhead almost to zero, but it's complicated. So we're building it out in linter first, which is easier because the AST only has to be transferred in one direction (Rust to JS) and then we'll extend it to transformer later on (Rust -> JS -> Rust). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
react-intl
is a very popular I18n localisation library.It includes a Babel plugin for removing parts of the message descriptors to save bytes in the finished bundle. This plugin has also been ported to SWC
It would be very nice to have a similar one for
oxc
, so we can get rid of Babel entirely.This could be a built-in plugin similar to
styled-components
, but it is not very complex and could be a good candidate for the upcoming JS plugin API?Beta Was this translation helpful? Give feedback.
All reactions