You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would this look like? import * as Option from 'monapt/option'?
I haven't tried this, but have you tried tree-shaking with import { Option } from 'monapt'?
I haven't tried this, but have you tried tree-shaking with import { Option } from 'monapt'?
I haven't tried it, but it would be great to have the separate file in any case, for when the module is imported in a module system that doesn't support tree shaking, e.g. CommonJS instead of ES Modules.
I haven't tried it, but it would be great to have the separate file in any case, for when the module is imported in a module system that doesn't support tree shaking, e.g. CommonJS instead of ES Modules.
Hmm...that's a good point. I'll see if I can come up with something.
The npm package currently only distributes one large JS file, including all types.
It would be great if it distributed a file for each type.
This would allow us to include
Option
in our codebase, if that's the only type being used, for example.The text was updated successfully, but these errors were encountered: