Add comments to @babel/preset-env configuration
authorRandall Leeds <randall@apache.org>
Sun, 12 Nov 2017 22:47:57 +0000 (14:47 -0800)
committerRandall Leeds <randall@apache.org>
Sun, 12 Nov 2017 22:47:57 +0000 (14:47 -0800)
webpack.config.js

index 485f62e..06bc6b3 100644 (file)
@@ -60,10 +60,15 @@ module.exports = {
               [
                 '@babel/env',
                 {
+                  // Do not transform modules; webpack can do that.
                   modules: false,
+                  // Enabled proposals that have shipped in browsers.
                   shippedProposals: true,
+                  // Set target environments.
                   targets: {
+                    // Browsers: > 1%, last 2 versions, Firefox ESR
                     browsers: ['defaults'],
+                    // Node: LTS
                     node: '6.0',
                   },
                   // Use a minimal @babel/polyfill.