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

Commit 1715bee

Browse files
author
Stanislav Panferov
committed
fix(index): use instance.options to invoke externals
1 parent f4eed15 commit 1715bee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ async function compiler(webpack: IWebPack, text: string): Promise<void> {
5353
}
5454
});
5555

56-
if (options.externals && !instance.externalsInvoked) {
56+
if (instance.options.externals && !instance.externalsInvoked) {
5757
if (externalsInvocation) {
5858
await externalsInvocation;
5959
} else {
60-
externalsInvocation = options.externals.map(async (external) => {
60+
externalsInvocation = instance.options.externals.map(async (external) => {
6161
await state.fileAnalyzer.checkDependencies(resolver, external);
6262
});
6363

0 commit comments

Comments
 (0)