When used with enhanced-require on node.js it throws an error because emitFile is not existent. Fix #2