Comments (5)
Hi @creage!
This plugin rewrites the module paths of lodash
to remove feature sets and reduce extraneous functionality to create smaller bundles.
from lodash-webpack-plugin.
This ended up being a strange issue that I never fully figured out:
lodash-webpack-plugin was somehow converting the forEach important to only handle forEach on arrays. Since we relied on collection iteration this broke things. I have since replaced that usage of forEach with an object.keys -> foreach
call, but I am curious if anyone else comes across weird behavior like this.
from lodash-webpack-plugin.
Hi @rt2zz!
You need to enable the "collections" feature set.
from lodash-webpack-plugin.
ah, @jdalton as a library author what would be the best way to "enforce" this? i.e. I cannot reasonably expect every consumer to know to set collections: true
.
from lodash-webpack-plugin.
I cannot reasonably expect every consumer to know to set
collections: true
.
Folks should be consuming the bundled build.
from lodash-webpack-plugin.
Related Issues (20)
- What feature does _.toArray belong to? HOT 2
- Compare Set() in isEqual HOT 1
- when i use get, it should depends on _baseGet , but load getValue HOT 1
- Tell the user of overrides or throw an error HOT 4
- Does a rollup alternative make sense? HOT 2
- Uncaught TypeError: Cannot read property 'length' of undefined HOT 1
- Webpack builds are not deterministic (omit sometimes behaves differently) HOT 2
- Expand the explanation on what the plugin actually is doing HOT 1
- Add support for Webpack v5 HOT 5
- pack the wrong function HOT 1
- _.map just to arrayMap ? forgot baseMap ? HOT 1
- import get method on demand error HOT 2
- Error: NormalModuleFactory.afterResolve is no longer a waterfall hook, but a bailing hook instead. HOT 3
- Switch to GitHub Actions for CI
- Get/_BaseGet cannot get right value of an object HOT 1
- Some problems should be seriously taken HOT 2
- READEME incorrect HOT 2
- pnpm
- Cannot read property 'has' of undefined
- Docs update or support Set and Map out of the box
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lodash-webpack-plugin.