hi, just getting into moonbit after having followed it at a glance. for me, it’s nearing the perfect language (sort of rust + gc). i’ll mainly be targeting the js backend so my perspective is sort of getting things running on nodejs (until moonbit, in the future, is more mature and has tons of mooncakes so i could switch to something else)
first off, i got the extern “js” stuff up and running for the js backend and i’m currently able to call js functions trivially, however, i don’t know how to call js libs in a tree-shakable-friendly manner. any thoughts on this? let’s say i wanted to use dayjs
from moonbit. assuming i already have the node_modules
dir with dayjs in place, how would i do the extern in a tree-shakable way?
secondly, i use doom emacs. i’m unable to get the moonbit major mode or moonbit treesitter grammar (i generally use treesitter without problems) working with doom emacs. any thoughts here?