1 | 'use strict'
|
2 |
|
3 | var evalAllowed = false;
|
4 | try {
|
5 | eval('evalAllowed = true');
|
6 | } catch (e) {
|
7 |
|
8 | }
|
9 |
|
10 |
|
11 | var platformSupported = !!Object.setPrototypeOf && evalAllowed;
|
12 |
|
13 | if (!module.hot || process.env.NODE_ENV === 'production' || !platformSupported) {
|
14 | if (module.hot) {
|
15 |
|
16 | console.warn('React-Hot-Loaded is not supported in this environment');
|
17 | }
|
18 | module.exports = require('./dist/react-hot-loader.production.min.js');
|
19 | } else {
|
20 | module.exports = require('./dist/react-hot-loader.development.js');
|
21 | }
|