gatsby-plugin-lodash
Advanced tools
Comparing version 1.0.7 to 1.1.0-alpha.03b9df85
@@ -13,3 +13,3 @@ "use strict"; | ||
exports.modifyWebpackConfig = function (_ref, _ref2) { | ||
var config = _ref.config, | ||
var boundActionCreators = _ref.boundActionCreators, | ||
stage = _ref.stage; | ||
@@ -19,29 +19,30 @@ var _ref2$disabledFeature = _ref2.disabledFeatures, | ||
if (stage === `build-javascript`) { | ||
var features = { | ||
shorthands: true, | ||
cloning: true, | ||
currying: true, | ||
caching: true, | ||
collections: true, | ||
exotics: true, | ||
guards: true, | ||
metadata: true, | ||
deburring: true, | ||
unicode: true, | ||
chaining: true, | ||
memoizing: true, | ||
coercions: true, | ||
flattening: true, | ||
paths: true, | ||
placeholders: true | ||
}; | ||
if (stage !== `build-javascript`) return; | ||
disabledFeatures.forEach(function (feature) { | ||
delete features[feature]; | ||
}); | ||
config.plugin(`Lodash`, webpackLodashPlugin, [features]); | ||
} | ||
var features = { | ||
shorthands: true, | ||
cloning: true, | ||
currying: true, | ||
caching: true, | ||
collections: true, | ||
exotics: true, | ||
guards: true, | ||
metadata: true, | ||
deburring: true, | ||
unicode: true, | ||
chaining: true, | ||
memoizing: true, | ||
coercions: true, | ||
flattening: true, | ||
paths: true, | ||
placeholders: true | ||
}; | ||
return; | ||
disabledFeatures.forEach(function (feature) { | ||
delete features[feature]; | ||
}); | ||
boundActionCreators.setWebpackConfig({ | ||
plugins: [new webpackLodashPlugin(features)] | ||
}); | ||
}; | ||
@@ -48,0 +49,0 @@ |
{ | ||
"name": "gatsby-plugin-lodash", | ||
"version": "1.0.7", | ||
"version": "1.1.0-alpha.03b9df85", | ||
"description": "Easy modular Lodash builds. Adds the Lodash webpack & Babel plugins to your Gatsby build", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2818
2