Skip to content

Commit

Permalink
chore(NA): remove empty filter check from thread loader pool config g…
Browse files Browse the repository at this point in the history
…etter (#58385)
  • Loading branch information
mistic authored Feb 24, 2020
1 parent 858fe2e commit 783c7f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/optimize/base_optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,7 @@ export default class BaseOptimizer {

getThreadLoaderPoolConfig() {
// Calculate the node options from the NODE_OPTIONS env var
const parsedNodeOptions = process.env.NODE_OPTIONS
? // thread-loader could not receive empty string as options
// or it would break that's why we need to filter here
process.env.NODE_OPTIONS.split(/\s/).filter(opt => !!opt)
: [];
const parsedNodeOptions = process.env.NODE_OPTIONS ? process.env.NODE_OPTIONS.split(/\s/) : [];

return {
name: 'optimizer-thread-loader-main-pool',
Expand Down

0 comments on commit 783c7f9

Please sign in to comment.