File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.0-placeholder" ,
4
4
"author" : " James Gillmore <james@faceyspacey.com>" ,
5
5
"contributors" : [
6
- " Zack Jackson <zackary.l.jackson@gmail.com> (https://github.com/zackljackson )"
6
+ " Zack Jackson <zackary.l.jackson@gmail.com> (https://github.com/ScriptedAlchemy )"
7
7
],
8
8
"description" : " Extract CSS from chunks into stylesheets + HMR. Supports Webpack 4" ,
9
9
"engines" : {
47
47
"travis" : " npm run ci:coverage"
48
48
},
49
49
"peerDependencies" : {
50
- "webpack" : " ^4.4.0 "
50
+ "webpack" : " ^4.8.3 "
51
51
},
52
52
"dependencies" : {
53
53
"loader-utils" : " ^1.1.0" ,
85
85
"pre-commit" : " ^1.2.2" ,
86
86
"prettier" : " ^1.11.1" ,
87
87
"standard-version" : " ^4.3.0" ,
88
- "webpack" : " ^4.4.0 " ,
88
+ "webpack" : " 4.8.3 " ,
89
89
"webpack-cli" : " ^2.0.13" ,
90
90
"webpack-dev-server" : " ^3.1.1"
91
91
},
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ const isHMR = (compiler) => {
24
24
}
25
25
26
26
if ( compiler . options . entry ) {
27
- const entryString = JSON . stringify ( compiler . options . entry ) ;
27
+ const entry = typeof compiler . options . entry === 'function' ? compiler . options . entry ( ) : compiler . options . entry ;
28
+ const entryString = JSON . stringify ( entry ) ;
28
29
return entryString . includes ( 'hot' ) || entryString . includes ( 'hmr' ) ;
29
30
}
30
31
}
Original file line number Diff line number Diff line change @@ -5138,7 +5138,7 @@ json-buffer@3.0.0:
5138
5138
version "3.0.0"
5139
5139
resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898"
5140
5140
5141
- json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2 :
5141
+ json-parse-better-errors@^1.0.1 :
5142
5142
version "1.0.2"
5143
5143
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
5144
5144
@@ -8620,9 +8620,9 @@ webpack-sources@^1.0.1, webpack-sources@^1.1.0:
8620
8620
source-list-map "^2.0.0"
8621
8621
source-map "~0.6.1"
8622
8622
8623
- webpack@^4.4.0 :
8624
- version "4.9.1 "
8625
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.9.1 .tgz#fa7bd738b17fd7f09f37da461b2f5c16c6565f34 "
8623
+ webpack@4.8.3 :
8624
+ version "4.8.3 "
8625
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.8.3 .tgz#957c8e80000f9e5cc03d775e78b472d8954f4eeb "
8626
8626
dependencies :
8627
8627
" @webassemblyjs/ast" " 1.4.3"
8628
8628
" @webassemblyjs/wasm-edit" " 1.4.3"
@@ -8634,7 +8634,6 @@ webpack@^4.4.0:
8634
8634
chrome-trace-event "^0.1.1"
8635
8635
enhanced-resolve "^4.0.0"
8636
8636
eslint-scope "^3.7.1"
8637
- json-parse-better-errors "^1.0.2"
8638
8637
loader-runner "^2.3.0"
8639
8638
loader-utils "^1.1.0"
8640
8639
memory-fs "~0.4.1"
You can’t perform that action at this time.
0 commit comments