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

Commit

Permalink
fix(index): use instance.options to invoke externals
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Panferov committed Dec 3, 2015
1 parent f4eed15 commit 1715bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ async function compiler(webpack: IWebPack, text: string): Promise<void> {
}
});

if (options.externals && !instance.externalsInvoked) {
if (instance.options.externals && !instance.externalsInvoked) {
if (externalsInvocation) {
await externalsInvocation;
} else {
externalsInvocation = options.externals.map(async (external) => {
externalsInvocation = instance.options.externals.map(async (external) => {
await state.fileAnalyzer.checkDependencies(resolver, external);
});

Expand Down

0 comments on commit 1715bee

Please sign in to comment.