Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Externalize lodash-es to reduce bundle size (#245)
Browse files Browse the repository at this point in the history
* bundle-size Externalize @emoji-mart/data and lodash-es to reduce bundle size

- We do need to consider how to lazily load the emoji mart code in future
because this still doesn't fix the fact that the final client bundler will end
up bundling everything together in the Flow bundle
- Same goes for other bigger libraries

* bundle-size emoji data externisation skipped

---------

Co-authored-by: vikas-cldcvr <vikas@cldcvr.com>
  • Loading branch information
NikhilVerma and vikas-cldcvr authored Mar 11, 2024
1 parent 7fabd78 commit c7b5487
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/flow-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [2.9.1] - 2024-03-10

### Improvements

- Externalise `lodash-es` to reduce bundle size.

## [2.9.0] - 2024-03-01

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-core",
"version": "2.9.0",
"version": "2.9.1",
"description": "Core package of flow design system",
"module": "dist/flow-core.es.js",
"main": "dist/flow-core.cjs.js",
Expand Down
1 change: 1 addition & 0 deletions packages/flow-core/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default defineConfig({
external: [
"axios",
"emoji-mart",
"lodash-es",
/^lit/,
"rxjs",
"@ollion/flow-core-config",
Expand Down

0 comments on commit c7b5487

Please sign in to comment.