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.
This commit is contained in:
Caleb 2017-09-29 20:47:35 -06:00
parent c06cb75f01
commit 8e989727d8

View File

@ -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',