Treeshaking Support #1003
Replies: 2 comments 3 replies
-
Hi @Matt-Jensen, Thank you for your feedback. We're glad HyperFormula fits your needs. Being treeshaking-friendly is a very good point. To be honest we didn't consider it while building HyperFormula. Typical spreadsheet applications make use of almost all the features of HyperFormula so they won't benefit from treeshaking that much, but for other use-cases it might make perfect sense. Could you describe your application and the way you use HyperFormula/formula-parser? Do you only parse formulas without calculating them? Do your formulas contain references to other spreadsheet cells? The context of your use-case will help us understand what modules should be exposed for importing separately. |
Beta Was this translation helpful? Give feedback.
-
Issue to deal with this problem: #1006 |
Beta Was this translation helpful? Give feedback.
-
Description
First of all: I'm a big fan of both Formula parser as well as this project. Kudos to everyone that made this possible!
That said, the only real detractor for using Hyperformula is overall package size. Formula-parser is significantly smaller and fits my needs just fine. For that reason I was wondering if it is currently possible to only import modules used?
For example instead of importing the entire project:
import { HyperFormula } from 'hyperformula'
;I'd like to be able to import the most minimal parser possible:
import Parser from 'hyperformula/parser;
Apologies if this is already supported, in which case I'd be happy to reframe this into a documentation request. 😄
Beta Was this translation helpful? Give feedback.
All reactions