/
umd.js
38 lines (31 loc) · 862 Bytes
/
umd.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('external')) :
typeof define === 'function' && define.amd ? define(['exports', 'external'], factory) :
(global = global || self, factory(global.myBundle = {}, global.external));
}(this, (function (exports, external) { 'use strict';
class Foo extends external.Component {
constructor () {
super();
this.isFoo = true;
}
}
class Bar extends external.Component {
constructor () {
super();
this.isBar = true;
}
}
class Baz extends external.Component {
constructor () {
super();
this.isBaz = true;
}
}
const foo = new Foo();
const bar = new Bar();
const baz = new Baz();
exports.bar = bar;
exports.baz = baz;
exports.foo = foo;
Object.defineProperty(exports, '__esModule', { value: true });
})));