Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

using lodash instead of lodash.assign, etc. will actually enable smaller webpack builds #430

Closed
jedwards1211 opened this issue Jun 19, 2018 · 1 comment

Comments

@jedwards1211
Copy link
Contributor

the lodash modular build packages like lodash.assign etc. are actually larger than you would expect, unable to share code with each other, and waste space in a webpack bundle.

It will save more space in webpack bundles to just

import {assign} from 'lodash'

and use babel-plugin-lodash/lodash-webpack-plugin to convert this to

import _assign from 'lodash/assign'
@jedwards1211 jedwards1211 changed the title use lodash instead of lodash.assign, etc. using lodash instead of lodash.assign, etc. will actually enable smaller webpack builds Jun 19, 2018
jedwards1211 added a commit to jedwards1211/subscriptions-transport-ws that referenced this issue Jun 19, 2018
jedwards1211 added a commit to jedwards1211/subscriptions-transport-ws that referenced this issue Jun 19, 2018
jedwards1211 added a commit to jedwards1211/subscriptions-transport-ws that referenced this issue Jun 19, 2018
@NeoPhi
Copy link
Contributor

NeoPhi commented Jun 29, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants