Skip to content

Commit a6c6d43

Browse files
committed
Fix compatibility with new glob library
1 parent a84786e commit a6c6d43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export class Server extends BaseServer {
116116
async autoloadModules(
117117
files = ['modules/*/index.js', 'modules/*.js', '!**/*.{test,spec}.js']
118118
) {
119+
if (!Array.isArray(files)) files = [files]
119120
let matches = await glob(files, {
120121
absolute: true,
121122
cwd: this.options.root,

0 commit comments

Comments
 (0)