Skip to content

Commit

Permalink
Merge pull request #181 from Borewit/improve-lazy-parser-loading
Browse files Browse the repository at this point in the history
 Make lazy loading of parser modules more browser friendly
  • Loading branch information
Borewit authored Dec 30, 2018
2 parents 6f2a645 + f34177e commit f420aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ParserFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class ParserFactory {
}
return parser;
}
const module = require('./' + moduleName + '/index');
const module = await import('./' + moduleName + '/index');
return new module.default();
}

Expand Down

0 comments on commit f420aaa

Please sign in to comment.