WIP: squash into "Add require" resuse writeTreeToFile from compiler.js