4 ms·
Mithril doesn't yet support ES Modules, so you have to take in the whole framework which probably includes things you don't want, like their ajax alternative or
by plopz 8y ago
Mithril doesn't yet support ES Modules, so you have to take in the whole framework which probably includes things you don't want, like their ajax alternative or promise polyfill.
If you just want a vdom library, I would recommend something like https://github.com/snabbdom/snabbdom https://github.com/snabbdom/snabbdom
- lhorie 8y agoThat'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.