Skip to content

Use individual lodash imports as lodash does not allow tree shaking.#3484

Merged
bjester merged 1 commit intolearningequality:unstablefrom
rtibbles:lodash-nodash
Aug 4, 2022
Merged

Use individual lodash imports as lodash does not allow tree shaking.#3484
bjester merged 1 commit intolearningequality:unstablefrom
rtibbles:lodash-nodash

Conversation

@rtibbles
Copy link
Copy Markdown
Member

@rtibbles rtibbles commented Aug 4, 2022

Summary

Description of the change(s) you made

Replaces destructured imports from lodash with imports from specific lodash submodules to prevent entire lodash code being included in the build.

Should reduce build size somewhat, and seems to reduce the memory usage growth over time of the devserver.

@bjester bjester merged commit a1fa332 into learningequality:unstable Aug 4, 2022
@rtibbles rtibbles deleted the lodash-nodash branch August 4, 2022 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants