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 -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 === '/' &&