Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit c20d684

Browse files
author
Stanislav Panferov
committed
fix(index): correct work with a promise chain
1 parent f388270 commit c20d684

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,11 @@ function compiler(webpack: IWebPack, text: string): void {
346346

347347
if (options.externals && !instance.externalsInvoked) {
348348
instance.externalsInvoked = true;
349-
instance.tsFlow = instance.tsFlow.then(
350-
<any>Promise.all(options.externals.map(external => {
349+
instance.tsFlow = instance.tsFlow.then(() => {
350+
return <any>Promise.all(options.externals.map(external => {
351351
return state.fileAnalyzer.checkDependencies(resolver, external);
352352
}))
353-
);
353+
});
354354
}
355355

356356
instance.tsFlow = instance.tsFlow

0 commit comments

Comments
 (0)