pack node-style source files from a json stream into a browser bundle