fix bug index.js#20 typeof settings.codeGen !== Function
Merge pull request #3 from zgp626/master

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