Skip to content

Commit 6e1093b

Browse files
authored
docs: remove babel from readme (#1494)
1 parent 38cb591 commit 6e1093b

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

Readme.md

-34
Original file line numberDiff line numberDiff line change
@@ -160,40 +160,6 @@ Learn more about the application object in the [Application API Reference](docs/
160160
- [FAQ](docs/faq.md)
161161
- [API documentation](docs/api/index.md)
162162

163-
## Babel setup
164-
165-
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):
166-
167-
```bash
168-
$ npm install @babel/register @babel/preset-env @babel/cli --save-dev
169-
```
170-
171-
In development, you'll want to use [`@babel/register`](https://babeljs.io/docs/en/next/babel-register):
172-
173-
```bash
174-
node --require @babel/register <your-entry-file>
175-
```
176-
177-
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:
178-
179-
```bash
180-
babel src --out-dir dist --copy-files
181-
```
182-
183-
And have your `.babelrc` setup:
184-
185-
```json
186-
{
187-
"presets": [
188-
["@babel/preset-env", {
189-
"targets": {
190-
"node": true
191-
}
192-
}]
193-
]
194-
}
195-
```
196-
197163
## Troubleshooting
198164

199165
Check the [Troubleshooting Guide](docs/troubleshooting.md) or [Debugging Koa](docs/guide.md#debugging-koa) in

0 commit comments

Comments
 (0)