Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 7180141

Browse files
authored
Merge pull request #67 from KarlZeo/bugfix/args-is-undefined
fix args.b undefined while use --target
2 parents 97f91fe + 5971265 commit 7180141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ module.exports = (api, options) => {
9292
}
9393
if (args.t || args.target) {
9494
cliArgs.push('--target')
95-
cliArgs.push(args.t)
95+
cliArgs.push(args.t ? args.t : args.target)
9696
}
9797
if (args.b || args.bundle) {
9898
cliArgs.push('--bundle')
99-
cliArgs.push(args.b)
99+
cliArgs.push(args.b ? args.b : args.bundle)
100100
}
101101
cli.run(cliArgs)
102102
}

0 commit comments

Comments
 (0)