Skip to content

Commit a9f9ce7

Browse files
committed
simplify new launcher
1 parent 66b1a7a commit a9f9ce7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/plugin-launcher.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module.exports = function (params) {
2-
let fn = require(params.requireFile)[params.buildUsing];
3-
return fn(params.params).plugin;
2+
return require(params.requireFile)[params.buildUsing](params.params).plugin;
43
};

lib/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function convertPlugins(wrappers) {
3838
requireFile: wrapper.requireFile,
3939
buildUsing: wrapper.buildUsing,
4040
params: wrapper.params,
41-
type: 'wrapper',
4241
},
4342
];
4443
}
@@ -49,7 +48,6 @@ function convertPlugins(wrappers) {
4948
requireFile: wrapper.parallelBabel.requireFile,
5049
buildUsing: wrapper.parallelBabel.buildUsing,
5150
params: wrapper.parallelBabel.params,
52-
type: 'plugin',
5351
},
5452
];
5553
}

0 commit comments

Comments
 (0)