We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ljharb
Learn more about funding links in repositories.
Report abuse
1 parent 4f81dbc commit d0ca885Copy full SHA for d0ca885
bin/tape
@@ -13,10 +13,11 @@ var opts = parseOpts(process.argv.slice(2), {
13
14
var cwd = process.cwd();
15
16
-/* If only one require is specified, the value of `opts.require`
17
- * will be a string. This is why we concatenate.
18
- */
19
-;[].concat(opts.require).forEach(function(module) {
+if (typeof opts.require === 'string') {
+ opts.require = [opts.require];
+}
+
20
+opts.require.forEach(function(module) {
21
/* The `module &&` ensures we ignore `-r ""`, trailing `-r` or other
22
* silly things the user might (inadvertedly) be doing.
23
*/
0 commit comments