Use local text lib

Fixes error when optimizing require