File tree 4 files changed +3
-16
lines changed
4 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 32
32
"babel-plugin-transform-object-rest-spread" : " ^6.23.0" ,
33
33
"babel-preset-es2015" : " ^6.24.1" ,
34
34
"babel-preset-react" : " ^6.24.1" ,
35
- "babel-preset-react-hmre" : " ^1.1.1" ,
36
35
"babel-register" : " ^6.24.1" ,
37
36
"boxen" : " ^1.1.0" ,
38
37
"chalk" : " ^1.1.3" ,
Original file line number Diff line number Diff line change 19
19
"lodash" : " ^4.17.4" ,
20
20
"moment" : " ^2.18.1" ,
21
21
"moment-timezone" : " ^0.5.11" ,
22
+ "prop-types" : " ^15.5.10" ,
22
23
"postcss-cssnext" : " 2.10.0" ,
23
24
"postcss-simple-extend" : " ^1.0.0" ,
24
25
"react-kronos" : " ^1.5.2"
Original file line number Diff line number Diff line change 15
15
" sanity-plugin"
16
16
],
17
17
"dependencies" : {
18
- "in-publish" : " ^2.0.0"
18
+ "in-publish" : " ^2.0.0" ,
19
+ "prop-types" : " ^15.5.10"
19
20
},
20
21
"devDependencies" : {
21
22
"@sanity/check" : " ^0.111.5" ,
Original file line number Diff line number Diff line change 1
1
import webpack from 'webpack'
2
- import { find , get , set } from 'lodash'
3
2
import registerBabel from 'babel-register'
4
3
import webpackDevMiddleware from 'webpack-dev-middleware'
5
4
import webpackHotMiddleware from 'webpack-hot-middleware'
@@ -21,19 +20,6 @@ export default function getDevServer(config = {}) {
21
20
// the document component, which can contain JSX etc
22
21
registerBabel ( )
23
22
24
- // Inject hot module reloading preset if not present already
25
- const babelLoader = find ( webpackConfig . module . loaders , { loader : 'babel' } )
26
- if ( babelLoader ) {
27
- const presets = get ( babelLoader , 'query.env.development.presets' , [ ] )
28
- if ( presets . indexOf ( 'react-hmre' ) === - 1 ) {
29
- set (
30
- babelLoader ,
31
- 'query.env.development.presets' ,
32
- presets . concat ( require . resolve ( 'babel-preset-react-hmre' ) )
33
- )
34
- }
35
- }
36
-
37
23
// Apply the dev and hot middlewares to build/serve bundles on the fly
38
24
const compiler = webpack ( webpackConfig )
39
25
app . use ( webpackDevMiddleware ( compiler , {
You can’t perform that action at this time.
0 commit comments