File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ const tls = require('tls');
17
17
const url = require ( 'url' ) ;
18
18
const http = require ( 'http' ) ;
19
19
const https = require ( 'https' ) ;
20
- const spdy = require ( 'spdy' ) ;
21
20
const sockjs = require ( 'sockjs' ) ;
22
21
23
22
const semver = require ( 'semver' ) ;
@@ -635,7 +634,12 @@ class Server {
635
634
if ( semver . gte ( process . version , '10.0.0' ) ) {
636
635
this . listeningApp = https . createServer ( options . https , app ) ;
637
636
} else {
638
- this . listeningApp = spdy . createServer ( options . https , app ) ;
637
+ /* eslint-disable global-require */
638
+ // The relevant issues are:
639
+ // https://github.com/spdy-http2/node-spdy/issues/350
640
+ // https://github.com/webpack/webpack-dev-server/issues/1592
641
+ this . listeningApp = require ( 'spdy' ) . createServer ( options . https , app ) ;
642
+ /* eslint-enable global-require */
639
643
}
640
644
} else {
641
645
this . listeningApp = http . createServer ( app ) ;
You can’t perform that action at this time.
0 commit comments