textdiff to commonjs