Skip to content

Commit 66b7097

Browse files
committed
chore: remove react-hot-loader beta (for now)
1 parent effd2b5 commit 66b7097

File tree

6 files changed

+0
-16
lines changed

6 files changed

+0
-16
lines changed

flow/decls/decls.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
11
declare var __USE_CSS_MODULES__: boolean
2-
type HotObjectType = {
3-
accept: Function
4-
}
5-
declare type ModuleType = {
6-
hot?: HotObjectType
7-
}
8-
declare var module: ModuleType

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"flow-bin": "^0.37.4",
6969
"html-webpack-plugin": "^2.25.0",
7070
"json-loader": "^0.5.4",
71-
"react-hot-loader": "^3.0.0-beta.4",
7271
"postcss-loader": "^1.2.1",
7372
"pre-commit": "^1.2.2",
7473
"react-flag-icon-css": "^1.0.7",

src/.babelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"react"
55
],
66
"plugins": [
7-
"react-hot-loader/babel",
87
"transform-object-rest-spread"
98
]
109
}

src/js/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,4 @@ const render = () => {
1515
ReactDOM.render(<App {...appProps} />, rootEL)
1616
}
1717

18-
if (module.hot) {
19-
module.hot.accept('./App', () : void => render())
20-
}
21-
2218
render()

webpack/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var compiler = webpack(config)
1111

1212
const server = new WebpackDevServer(compiler, {
1313
contentBase: outputPath,
14-
hot: true,
1514
filename: config.output.filename,
1615
publicPath: config.output.publicPath,
1716
stats: {

webpack/webpack.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ const config = options => {
4646
return {
4747
context: context,
4848
entry: [
49-
'react-hot-loader/patch',
50-
'webpack/hot/only-dev-server',
5149
`webpack-dev-server/client?http://0.0.0.0:${port}/`,
5250
path.join(context, 'index.js'),
5351
],

0 commit comments

Comments
 (0)