Skip to content

Commit a354ff5

Browse files
authored
replace 'by' with 'with' for better grammar
1 parent 8e63983 commit a354ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorial/02-babel-es6-eslint-flow-jest-husky.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ We're using a *template string* here, which is an ES6 feature that lets us injec
2121

2222
Babel CLI comes with [two executables](https://babeljs.io/docs/usage/cli/): `babel`, which compiles ES6 files into new ES5 files, and `babel-node`, which you can use to replace your call to the `node` binary and execute ES6 files directly on the fly. `babel-node` is great for development but it is heavy and not meant for production. In this chapter we are going to use `babel-node` to set up the development environment, and in the next one we'll use `babel` to build ES5 files for production.
2323

24-
- In `package.json`, in your `start` script, replace `node .` by `babel-node src` (`index.js` is the default file Node looks for, which is why we can omit `index.js`).
24+
- In `package.json`, in your `start` script, replace `node .` with `babel-node src` (`index.js` is the default file Node looks for, which is why we can omit `index.js`).
2525

2626
If you try to run `yarn start` now, it should print the correct output, but Babel is not actually doing anything. That's because we didn't give it any information about which transformations we want to apply. The only reason it prints the right output is because Node natively understands ES6 without Babel's help. Some browsers or older versions of Node would not be so successful though!
2727

0 commit comments

Comments
 (0)