You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
-
197
163
## Troubleshooting
198
164
199
165
Check the [Troubleshooting Guide](docs/troubleshooting.md) or [Debugging Koa](docs/guide.md#debugging-koa) in
0 commit comments