'use strict';

/* create.js
 * Create new tree components through SPV lib.
 */

function create(constructor, prototype){
  let NewComponent = function(){
    if (!new.target) return new NewComponent(...arguments);
    constructor.apply(this, arguments);
  }

  NewComponent.prototype = prototype;
  return NewComponent;
}

module.exports = create;

@@ -73,16 +73,52 @@
 b.%0A */%0A%0A
+module.exports = exports = create;%0A%0A
 function
@@ -355,30 +355,4 @@
 ;%0A%7D%0A
-%0Amodule.exports = create;%0A

Add exports to object.