wenyan
wenyan copied to clipboard
Precompile stdlib and treeshaking
As stdlib getting big, should we consider precompile stdlib (into asc or something) into the package and make it treeshakeable?
For example, example 畫心 imports over 60kbs of stdlib because it uses
吾嘗觀「「算經」」之書。方悟「絕對」「平方根」之義。

Or maybe performance is not the main focus for now?
I think precompiling is a good idea! perhaps even directly into JS will be functionally the same? But yeah, I don't feel too urgent about it. Also I'm interested in how treeshaking is implemented, so eventually we can do it at the wenyan level :) will do some research.