Export takes --batch-size balancing perf/stability.

This is mainly beneficial when exporting fewer and larger documents, or lots of small documents.
Pure JS shim at index.js, ignore compiled code.