create standalone modules Usage yarn add standalone-module import { transform } from 'standalone-module'; (async ()=>{ const code = await transform({ moduleName: 'myawesomemodule', modulePath: __dirname + '/path/to/your/module' }); })();