1 | 'use strict';
|
2 |
|
3 |
|
4 | (function register() {
|
5 |
|
6 |
|
7 | var reactHotLoader = require('react-hot-loader').default;
|
8 |
|
9 | if (!reactHotLoader) {
|
10 | return;
|
11 | }
|
12 |
|
13 |
|
14 | var webpackExports = typeof __webpack_exports__ !== 'undefined' ? __webpack_exports__ : exports;
|
15 |
|
16 |
|
17 | if (typeof webpackExports === 'function') {
|
18 | reactHotLoader.register(webpackExports, 'module.exports', __FILENAME__);
|
19 | return;
|
20 | }
|
21 |
|
22 |
|
23 | for (var key in webpackExports) {
|
24 |
|
25 | if (!Object.prototype.hasOwnProperty.call(webpackExports, key)) {
|
26 | continue;
|
27 | }
|
28 |
|
29 | var namedExport = void 0;
|
30 | try {
|
31 | namedExport = webpackExports[key];
|
32 | } catch (err) {
|
33 | continue;
|
34 | }
|
35 |
|
36 | reactHotLoader.register(namedExport, key, __FILENAME__);
|
37 | }
|
38 | })();
|