fix text.js noderequire not being overridable outside of bundle

fix text.js noderequire not being overridable outside of bundle