Skip to content

Commit 3c91001

Browse files
committed
Remove unused dependencies
1 parent ceca9ec commit 3c91001

File tree

4 files changed

+18
-63
lines changed

4 files changed

+18
-63
lines changed

package-lock.json

Lines changed: 13 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
"@types/react-syntax-highlighter": "11.0.4",
3434
"@types/styled-components": "^4.4.3",
3535
"antd": "^4.2.2",
36-
"axios": "^0.19.2",
37-
"axui-contextmenu": "^0.4.0",
3836
"babel-polyfill": "^6.26.0",
3937
"babel-preset-env": "^1.7.0",
4038
"craco-less": "^1.16.0",
@@ -49,7 +47,6 @@
4947
"react": "^16.13.1",
5048
"react-dom": "^16.13.1",
5149
"react-github-button": "^0.1.11",
52-
"react-hot-loader": "^4.12.19",
5350
"react-router": "^5.1.2",
5451
"react-router-dom": "^5.1.2",
5552
"react-scripts": "3.4.3",
@@ -72,5 +69,7 @@
7269
"last 1 safari version"
7370
]
7471
},
75-
"dependencies": {}
72+
"dependencies": {
73+
"react-hot-loader": "^4.13.0"
74+
}
7675
}

src/pages/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import 'styles/globals';
3-
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
3+
import { BrowserRouter, Switch, Route } from 'react-router-dom';
44
import { hot } from 'react-hot-loader/root';
55
import { NoMatch, ErrorBoundary } from 'components';
66
import 'styles/globals';

src/react-electron-window-menu/ContextMenu.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
import * as React from 'react';
22
import { IREWMenu } from './@types';
33
import { PopupMenu } from './components';
4-
5-
const ReactDOM = (() => {
6-
try {
7-
const ReactDom = require('@hot-loader/react-dom');
8-
if (ReactDom) {
9-
return ReactDom;
10-
}
11-
} catch (error) {}
12-
return require('react-dom');
13-
})();
4+
import * as ReactDOM from 'react-dom';
145

156
class ContextMenu implements IREWMenu.IContextMenu {
167
container: HTMLDivElement | undefined;

0 commit comments

Comments
 (0)