From 8e989727d8ce5ed1e2615c5472284039ade22ac2 Mon Sep 17 00:00:00 2001 From: Caleb Date: Fri, 29 Sep 2017 20:47:35 -0600 Subject: [PATCH] Remove Esprima from the `js-yaml` bundle. According to the `js-yaml` docs, it is only needed if you are trying to parse JS functions in/out of JSON, which we are not doing. --- webpack.base.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.base.js b/webpack.base.js index 145f37ef..d2e4073c 100644 --- a/webpack.base.js +++ b/webpack.base.js @@ -61,6 +61,7 @@ module.exports = { ], }, plugins: [ + new webpack.IgnorePlugin(/^esprima$/, /js-yaml/), // Ignore Esprima import for js-yaml new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), // Ignore all optional deps of moment.js new webpack.ProvidePlugin({ fetch: 'imports-loader?this=>global!exports-loader?global.fetch!whatwg-fetch',