Skip to content

Commit ee57aa2

Browse files
committed
getCustomTransformers error message fix
1 parent c49e391 commit ee57aa2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/instances.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export function initializeInstance(
361361
throw new Error(
362362
`Custom transformers in "${
363363
instance.loaderOptions.getCustomTransformers
364-
}" should export a function, got ${typeof getCustomTransformers}`
364+
}" should export a function, got ${typeof customerTransformers}`
365365
);
366366
}
367367
getCustomTransformers = customerTransformers;
@@ -403,10 +403,10 @@ export function initializeInstance(
403403
instance,
404404
instance.configParseResult.projectReferences
405405
);
406-
instance.watchOfFilesAndCompilerOptions = instance.compiler.createWatchProgram(
407-
instance.watchHost
408-
);
409-
instance.builderProgram = instance.watchOfFilesAndCompilerOptions.getProgram();
406+
instance.watchOfFilesAndCompilerOptions =
407+
instance.compiler.createWatchProgram(instance.watchHost);
408+
instance.builderProgram =
409+
instance.watchOfFilesAndCompilerOptions.getProgram();
410410
instance.program = instance.builderProgram.getProgram();
411411

412412
instance.transformers = getCustomTransformers(instance.program);

0 commit comments

Comments
 (0)