Skip to content

Commit 20ff530

Browse files
committed
chore: formatting
1 parent 123a150 commit 20ff530

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

packages/generators/add-generator.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,13 @@ export default class AddGenerator extends Generator {
291291
* find the names of each natively plugin and check if it matches
292292
*/
293293
if (action === "plugins") {
294-
let answeredPluginName = answerToAction.actionAnswer
294+
let answeredPluginName = answerToAction.actionAnswer;
295295
let isPrefixPresent = /webpack./.test(answeredPluginName);
296-
if( isPrefixPresent ){
297-
answeredPluginName = answeredPluginName.replace("webpack.","").trim()
298-
}else{
299-
answeredPluginName = answeredPluginName.trim()
296+
297+
if (isPrefixPresent) {
298+
answeredPluginName = answeredPluginName.replace("webpack.", "").trim();
299+
} else {
300+
answeredPluginName = answeredPluginName.trim();
300301
}
301302
const pluginExist: string = glob
302303
.sync(["node_modules/webpack/lib/*Plugin.js", "node_modules/webpack/lib/**/*Plugin.js"])

0 commit comments

Comments
 (0)