jenseng / react-i18nliner

translate="yes" all the things
MIT License
45 stars 15 forks source link

speed up webpack and browserify #15

Closed jenseng closed 9 years ago

jenseng commented 9 years ago

the webpack loader and browserify transform will do a full preprocess of every file they are given ... that means an esprima/acorn parse, a recast visit, and a recast print. we should skip files if we know we don't need to process them

we already have logic that does this for i18nliner:check ... a simple regex check for translatable content (based on .i18nrc settings)