Chevrotain / chevrotain

Parser Building Toolkit for JavaScript
https://chevrotain.io
Apache License 2.0
2.44k stars 200 forks source link

Updated #1871 to remove lodash #1942

Closed sidharthv96 closed 1 year ago

sidharthv96 commented 1 year ago

@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
bd82 commented 1 year ago

merging into remove_lodash_new branch to apply fixes

bd82 commented 1 year ago

superseded by #1949