facebook / fbt

A JavaScript Internationalization Framework
https://facebook.github.io/fbt
MIT License
3.88k stars 178 forks source link

Consider exposing a macro. #41

Open wtgtybhertgeghgtwtg opened 5 years ago

wtgtybhertgeghgtwtg commented 5 years ago

Sorry if this has been brought up somewhere before. Would you consider using babel-plugin-macros for babel-plugin-fbt? It looks like a good fit for an imperative tool and would allow adoption in create-react-app projects. You could probably rework the demo a bit to use it and be a little more concise.

jrwats commented 5 years ago

Looks interesting. It'll be a while before we'll have bandwidth to investigate this internally, but it's worth considering.