function n( ...args ){
	var view = m( ...args );
	var cfg  = view.attrs.config;
	var kids = [];

	( function recurse( x ){
		return x instanceof Array ? x.map( recurse ) : kids.push( x );
	}( view.children ) );

	var dom  = [];
	var vdom = [];

	for ( let x of kids )
		( x.nodeType ? dom : vdom ).push( x );
	} );

	if( dom.length ){
		view.attrs.config = function appendDom( el, ...rest ){
			for ( let node of dom ){
				if( !node.isEqualNode( pos ) ){
					el.insertBefore( node, el.childNodes[ kids.indexOf( node ) ] || null );
				}
			}

			return cfg && cfg( el, ...rest );
		};

		view.children = vdom;
	}

	return view;
}

@@ -1,16 +1,57 @@
+import m from 'mithril';%0A%0Aexport default 
 function n( ...a

Fix module code removed in last commit