Skip to content

Commit

Permalink
perf(bundle): re-organization of imports, remove import *all* from lo…
Browse files Browse the repository at this point in the history
…dash

Due to how the imports were done the build was not being tree-shook properly, making the package be
over 600kb. With this change, it reduced its size to 50kb.
  • Loading branch information
codedavinci committed Mar 29, 2020
1 parent ef1e1eb commit 4da565b
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 282 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ fabric.properties

node_modules/

dist/
yarn-error.log

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
],
"dependencies": {
"file-saver": "^2.0.2",
"lodash": "^4.17.15",
"lodash.mapkeys": "^4.6.0",
"lodash.pick": "^4.4.0",
"lodash.pickby": "^4.6.0",
"papaparse": "^5.1.1",
"vue": "^2.6.11"
},
Expand Down
Loading

0 comments on commit 4da565b

Please sign in to comment.