diff --git a/docs/07-tools.md b/docs/07-tools.md index b83b221ed8e..2952fca6c98 100755 --- a/docs/07-tools.md +++ b/docs/07-tools.md @@ -166,14 +166,12 @@ Before Babel will actually compile your code, it needs to be configured. Create ```json { "presets": [ - ["@babel/env", {"modules": false}] + "@babel/env" ] } ``` -There are a few unusual elements to this setup. First, we're setting "modules": false, otherwise Babel will convert our modules to CommonJS before Rollup gets a chance to do its thing, causing it to fail. - -Secondly, we're putting our `.babelrc.json` file in `src`, rather than the project root. This allows us to have a different `.babelrc.json` for things like tests, if we need that later – See the [Babel documentation](https://babeljs.io/docs/en/config-files#project-wide-configuration) for more information on both project wide and file relative configuration. +We're putting our `.babelrc.json` file in `src`, rather than the project root. This allows us to have a different `.babelrc.json` for things like tests, if we need that later – See the [Babel documentation](https://babeljs.io/docs/en/config-files#project-wide-configuration) for more information on both project wide and file relative configuration. Now, before we run rollup, we need to install [`babel-core`](https://babeljs.io/docs/en/babel-core)