New Features
Note
This feature may increase the size of the bundle in some cases. Please test it in your project before using it in production.
-
Support single function require in CommonJS, which means the following code is supported:
const isEqual = require("lodash/isEqual.js"); // supported const isEqual = require("lodash-es/isEqual.js"); // supported const lodashIsEqual = require("lodash.isequal"); // supported
-
Support excluding some lodash methods from being replaced, now you can use the
excludes
option to exclude some methods.new WebpackEsToolkitPlugin({ excludes: ["isEqual"], })
Full Changelog: v0.1.0...v0.2.0