Add node target for preset-env for good measure
authorRandall Leeds <randall@apache.org>
Sun, 12 Nov 2017 20:06:42 +0000 (12:06 -0800)
committerRandall Leeds <randall@apache.org>
Sun, 12 Nov 2017 20:23:47 +0000 (12:23 -0800)
Having a node target for preset-env means that whatever gets shipped to
npm could be transpiled for compatibility with node runtimes as well as
browsers.

webpack.config.js

index 51dce17..3efa977 100644 (file)
@@ -51,6 +51,7 @@ module.exports = {
                   shippedProposals: true,
                   targets: {
                     browsers: ['defaults'],
+                    node: '6.0',
                   },
                 },
               ],