From 1e81ea36910d6dc599f8868e0e31443f63399eba Mon Sep 17 00:00:00 2001 From: "Taehwan, No" Date: Wed, 18 Oct 2017 17:22:26 +0900 Subject: [PATCH] docs: update babel setup (#1077) --- docs/api/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); ```