17 ms·
That's not quite true. While it's true that it doesn't export treeshakeable exports, you can import things piecemeal like `import h from 'mithril/hyperscript'`.
by lhorie 8y ago
That's not quite true. While it's true that it doesn't export treeshakeable exports, you can import things piecemeal like `import h from 'mithril/hyperscript'`.
The rationale is that mithril always tries to be explicit, whereas treeshaking is a form of compiler magic.
- hardwaresofton 8y agoContext: I'm pretty sure the parent (to this comment), lhorie, is the creator of Mithril: https://github.com/MithrilJS/mithril.js/graphs/contributors https://github.com/MithrilJS/mithril.js/graphs/contributors Thanks to you and the team of contributors for your continued hard work on Mithril! I'm having a blast using it.