Skip to content

Commit 3152b8c

Browse files
author
wendy@lastlookeditorial.com
committed
Edited ch01.asciidoc with Atlas code editor
1 parent 7f87f5f commit 3152b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch01.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ If you execute `npm run build` in your terminal now, you'll note that a _dist/ex
199199
}
200200
----
201201

202-
The `env` preset, ((("Babel", "env preset")))which we installed earlier via `npm`, adds a series of plugins to Babel that transform different bits of ES6 code into ES5. Among other things, this preset transforms arrow functions like the one in our _example.js_ file into ES5 code. The `env` Babel preset works by convention, enabling Babel transformation plugins according to feature support in the latest browsers. This preset is configurable, meaning we can decide how far back we want to cover browser support. The more browsers we support, the larger our transpiled bundle. The fewer browsers we support, the fewer customers we can satisfy. As always, research is of the essence to identify what the correct configuration for the Babel `env` preset is. By default, every transform is enabled, providing broad runtime support.
202+
The `env` preset, which we installed earlier via `npm`, adds a series of plugins to Babel that transform different bits of ES6 code into ES5. Among other things, this preset transforms arrow functions like the one in our _example.js_ file into ES5 code. The `env` Babel preset works by convention, enabling Babel transformation plugins according to feature support in the latest browsers. This preset is configurable, meaning we can decide how far back we want to cover browser support. The more browsers we support, the larger our transpiled bundle. The fewer browsers we support, the fewer customers we can satisfy. As always, research is of the essence to identify what the correct configuration for the Babel `env` preset is. By default, every transform is enabled, providing broad runtime support.
203203

204204
Once we run our build script again, we'll observe that the output is now valid ES5 code:
205205

0 commit comments

Comments
 (0)