Skip to content

Commit d9351ef

Browse files
committed
fix: set 'threads' of eslint-webpack-plugin by 'options.parallel'
1 parent 934353f commit d9351ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/@vue/cli-plugin-eslint/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module.exports = (api, options) => {
2424
cacheLocation: api.resolve('node_modules/.cache/.eslintcache'),
2525
// plugin options
2626
context: cwd,
27+
threads: process.env.NODE_ENV === 'production'
28+
? options.parallel
29+
: false,
2730
emitWarning: allWarnings,
2831
emitError: allErrors,
2932
eslintPath: path.dirname(

0 commit comments

Comments
 (0)