This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 98
Bundle contains many lodash functions #236
Comments
@krystian50 hi, any luck? Happening the same for me. I just used one function but the bundle had too many functions. |
3 tasks
Any update? |
@jdalton is it still working? |
It's still happening. I've prepared a repro repo: grzegorzjudas/babel-lodash-repro. |
Potentially related: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Why the build size is so large?
Working example: https://github.com/krystian50/babel-plugin-lodash-issue
The only lodash related code is:
Plugin is added through
.babelrc
Without babel-plugin-lodash build looks like:
![Screenshot 2020-04-16 at 12 39 27](https://user-images.githubusercontent.com/19366440/79446922-593fa800-7fdf-11ea-895c-6fb53941e275.png)
With plugin:
![Screenshot 2020-04-16 at 12 39 56](https://user-images.githubusercontent.com/19366440/79446968-69f01e00-7fdf-11ea-9e65-4aa2b4c71f69.png)
Basically there is many functions, but I only used map. I checked build code and there is import lines:
The text was updated successfully, but these errors were encountered: