forked from wc-catalogue/blaze-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolyfills.ts
27 lines (23 loc) · 903 Bytes
/
polyfills.ts
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
// temporary hack to make skate 4.1 work with TS
import 'tslib';
// Babel implementation of _inherits
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}
(window as any).__extends = _inherits;
// Added parts of es6 which are necessary for your project or your browser support requirements.
import 'core-js/es6/object';
import 'core-js/es6/array';
import 'core-js/es6/promise';
import 'skatejs-web-components';