| Total Complexity | 3 |
| Complexity/F | 1.5 |
| Lines of Code | 10 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** |
||
| 7 | module.exports = (entry) => { |
||
| 8 | const results = {}; |
||
| 9 | const hotMiddlewareScript = 'webpack-hot-middleware/client?timeout=20000&reload=true'; |
||
| 10 | |||
| 11 | Object.keys(entry).forEach((name) => { |
||
| 12 | results[name] = Array.isArray(entry[name]) ? entry[name].slice(0) : [entry[name]]; |
||
| 13 | results[name].unshift(hotMiddlewareScript); |
||
| 14 | }); |
||
| 15 | return results; |
||
| 16 | }; |
||
| 17 |