Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated #1871 to remove lodash #1942

Merged
merged 5 commits into from
Jun 29, 2023

Conversation

sidharthv96
Copy link

@sidharthv96 sidharthv96 commented Jun 5, 2023

@joliss did extensive work to remove the lodash dependency.

We are trying to replace Jison with a Chevrotain based parser (langium) at MermaidJS.
As our primary use case is browser based, package size is a major issue for us.
lodash is also causing many build time warnings when built with vite.

Size comparison

File master remove_lodash ~reduction reduction kb
chevrotain.js 627757 410573 34% 217
chevrotain.min.js 203501 162222 20% 41
chevrotain.mjs 517576 351780 32% 166
chevrotain.min.mjs 209131 164468 21% 45

joliss and others added 3 commits December 30, 2022 19:46
* refactor: replace lodash with native ES2015 functions

fixes Chevrotain#1870

* chore: reformat and update pnpm-lock.yaml

Co-authored-by: Shahar Soel <[email protected]>
* upstream/master:
  chore(deps): update prettier
  chore(release): release v10.5.0
  chore: update changelog before release
  feat: add IRecognitionException to recoveryValueFunc arguments to provide information (Chevrotain#1917)
@bd82 bd82 changed the base branch from master to remove_lodash_new June 29, 2023 23:06
@bd82
Copy link
Member

bd82 commented Jun 29, 2023

merging into remove_lodash_new branch to apply fixes

@bd82 bd82 merged commit efdf521 into Chevrotain:remove_lodash_new Jun 29, 2023
@bd82
Copy link
Member

bd82 commented Jun 29, 2023

superseded by #1949

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.

3 participants