diff --git a/src/staxfile/index.ts b/src/staxfile/index.ts index 08fdc2d..8b207a8 100644 --- a/src/staxfile/index.ts +++ b/src/staxfile/index.ts @@ -167,6 +167,9 @@ export default class Staxfile { } private normalizeModules(modules) { + if (!modules) + return [] + return modules.map((module) => { if (typeof module === 'string') module = { name: module, if: true }