Posted 20 December 2019, 6:18 am EST - Updated 3 October 2022, 10:34 am EST
Good morning/afternoon
I’m currently reviewing my bundle within a web app which uses SpreadJS 13.0.2 and I just noticed that importing globally spreadJS using the node package spread-sheets it injects something related to languages. (the whole import takes more than 1mb of js)
Within my app I import globally this:
import GC from ‘@grapecity/spread-sheets’
The bundle file imports gc.spread.sheets.all.min.js from node_modules/@grapecity/spread-sheets/dist during the build for production.
(note there is nothing else but that file)
Given the above, when I take a snapshot of the memory within Chrome devtools I notice a huge amount of “Object” entries with type NumberFormat and underneath languages related keys (e.g. ko-kr, zh-cn)
Please see below:
Do you have a solution to import just core part of the library to optimise the bundle?
Thanks for your support

