File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ var webpack = require('webpack');
7
7
var process = require ( 'process' ) ;
8
8
var ForkTsCheckerWebpackPlugin = require ( '../../lib/index' ) ;
9
9
var IncrementalChecker = require ( '../../lib/IncrementalChecker' ) ;
10
- var VueLoaderPlugin = require ( 'vue-loader/lib/plugin' )
11
10
12
11
var webpackMajorVersion = require ( './webpackVersion' ) ( ) ;
13
12
13
+ var VueLoaderPlugin = webpackMajorVersion >= 4 ? require ( 'vue-loader/lib/plugin' ) : undefined ;
14
+
14
15
describe ( '[INTEGRATION] vue' , function ( ) {
15
16
this . timeout ( 60000 ) ;
16
17
process . setMaxListeners ( 0 ) ;
@@ -57,7 +58,7 @@ describe('[INTEGRATION] vue', function () {
57
58
]
58
59
} ,
59
60
plugins : [
60
- new VueLoaderPlugin ( ) ,
61
+ ... ( webpackMajorVersion >= 4 ? [ new VueLoaderPlugin ( ) ] : [ ] ) ,
61
62
plugin
62
63
]
63
64
} ) ;
You can’t perform that action at this time.
0 commit comments