UNPKG

happy-everyday

Version:

20 lines (17 loc) 519 B
(function(global) { "use strict" let TestComponent = function(options) { console.log(options) }; TestComponent.prototype = { init: function() { console.log('init TestComponent...') } }; if (typeof module !== 'undefined' && module.exports) { module.exports = TestComponent } else if (typeof define === 'function') { define(function() { return TestComponent; }); } global.TestComponent = TestComponent })(this)