Optimizes lodash imports by selectively importing only the functions we need (as opposed to importing the default lodash object and calling methods from it).
Motivation and Context
Cuts the bundled lodash code from 71.3kb to 20.2kb in the Web Worker and 31.2kb. Whereas lodash was 71.5% of the Web Worker bundle, it is now 41.6%, meaning it will load much faster (important for highlighting and fetching parsers)
Checklist:
[x] My code follows the code style of this project.
Description
Optimizes lodash imports by selectively importing only the functions we need (as opposed to importing the default lodash object and calling methods from it).
Motivation and Context
Cuts the bundled lodash code from 71.3kb to 20.2kb in the Web Worker and 31.2kb. Whereas lodash was 71.5% of the Web Worker bundle, it is now 41.6%, meaning it will load much faster (important for highlighting and fetching parsers)
Checklist:
Browsers