Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-lodash

Package Overview
Dependencies
Maintainers
2
Versions
320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-lodash - npm Package Compare versions

Comparing version 1.0.7 to 1.1.0-alpha.03b9df85

53

gatsby-node.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc