sibelius / ast-i18n

Easily migrate your existing React codebase to use i18n
MIT License
215 stars 18 forks source link

run babel transformer in parallel or use workers like jscodeshift #55

Closed sibelius closed 8 months ago

sibelius commented 5 years ago

running babel transformer to generate i18n resource can be very slow in huge codebases

we should run babel transformer in parallel and them join the resources found in a single file in the end

katilius commented 5 years ago

Since i18nTransformerCodemod already runs in parallel, maybe it's worth simply outputting resources for that file, and after everything is finished, join the resources up? Then it would allow having single script that does iterating

sibelius commented 5 years ago

it makes sense, we can try a POC