From 6e1093be27b41135c8e67fce108743d54e9cab67 Mon Sep 17 00:00:00 2001 From: miwnwski Date: Thu, 30 Jul 2020 06:24:15 +0200 Subject: [PATCH] docs: remove babel from readme (#1494) --- Readme.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/Readme.md b/Readme.md index 84a1380fb..0072120c3 100644 --- a/Readme.md +++ b/Readme.md @@ -160,40 +160,6 @@ Learn more about the application object in the [Application API Reference](docs/ - [FAQ](docs/faq.md) - [API documentation](docs/api/index.md) -## Babel setup - -If you're not using `node v7.6+`, we recommend setting up `babel` with [`@babel/preset-env`](https://babeljs.io/docs/en/next/babel-preset-env): - -```bash -$ npm install @babel/register @babel/preset-env @babel/cli --save-dev -``` - -In development, you'll want to use [`@babel/register`](https://babeljs.io/docs/en/next/babel-register): - -```bash -node --require @babel/register -``` - -In production, you'll want to build your files with [`@babel/cli`](https://babeljs.io/docs/en/babel-cli). Suppose you are compiling a folder `src` and you wanted the output to go to a new folder `dist` with non-javascript files copied: - -```bash -babel src --out-dir dist --copy-files -``` - -And have your `.babelrc` setup: - -```json -{ - "presets": [ - ["@babel/preset-env", { - "targets": { - "node": true - } - }] - ] -} -``` - ## Troubleshooting Check the [Troubleshooting Guide](docs/troubleshooting.md) or [Debugging Koa](docs/guide.md#debugging-koa) in