fix bug index.js#20 typeof settings.codeGen !== Function