A babel plugin to transform mithril hyperscript function invocations like m(".fooga")
into static JS objects like:
{ tag: "div", attrs: { "className" : "fooga" }, children: [ ] }
for speeeeeed.
Please file an issue if you come across any cases that this doesn't handle, I'd love to improve the number of structures I can rewrite!
â ï¸ â¡ï¸ â ï¸ Maintenance Mode â ï¸ â¡ï¸ â ï¸This version is for mithril@0.2.x
only and is unlikely to receive future updates.
To optimize mithril@1.x
code use mopt
.
Install with npm
npm i mithril-objectify
.babelrc
CLI{
    "plugins": [ "mithril-objectify" ]
}
$ babel --plugins mithril-objectify script.js
Rollup Browserify WebPackrequire("babel-core").transform("<code>", {
  plugins: [ "mithril-objectify" ]
});
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4