diff --git a/docs/api/index.md b/docs/api/index.md index 45a0068..1895ef9 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -12,10 +12,10 @@ $ node my-koa-app.js ## Async Functions with Babel -To use `async` functions in Koa in versions of node < 7.6, we recommend using [babel's require hook](http://babeljs.io/docs/usage/require/). +To use `async` functions in Koa in versions of node < 7.6, we recommend using [babel's require hook](http://babeljs.io/docs/usage/babel-register/). ```js -require('babel-core/register'); +require('babel-register'); // require the rest of the app that needs to be transpiled after the hook const app = require('./app'); ```