chore: remove react-hot-loader from devutils

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-08-22 12:58:48 +02:00
parent 0f0a56a910
commit 021980ef88
2 changed files with 1 additions and 8 deletions
-1
View File
@@ -48,7 +48,6 @@
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^14.0.0",
"react-use": "^17.2.4",
"react-hot-loader": "^4.13.0",
"react-router": "6.0.0-beta.0",
"react-router-dom": "6.0.0-beta.0",
"zen-observable": "^0.8.15"
+1 -7
View File
@@ -46,7 +46,6 @@ import { Box } from '@material-ui/core';
import BookmarkIcon from '@material-ui/icons/Bookmark';
import React, { ComponentType, ReactNode } from 'react';
import ReactDOM from 'react-dom';
import { hot } from 'react-hot-loader';
import { Route } from 'react-router';
import { SidebarThemeSwitcher } from './SidebarThemeSwitcher';
@@ -224,12 +223,7 @@ export class DevAppBuilder {
* Build and render directory to #root element, with react hot loading.
*/
render(): void {
const hotModule =
require.cache['./dev/index.tsx'] ??
require.cache['./dev/index.ts'] ??
module;
const DevApp = hot(hotModule)(this.build());
const DevApp = this.build();
if (
window.location.pathname === '/' &&