From c8d370e4116d19cdd8a50276a86619ac91beb6d6 Mon Sep 17 00:00:00 2001 From: wessberg Date: Mon, 1 Jun 2020 10:40:42 +0200 Subject: [PATCH] fix: remove throw statement for SystemJS as compiletarget --- src/transformer/di.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/transformer/di.ts b/src/transformer/di.ts index c2101bd..fe5e147 100644 --- a/src/transformer/di.ts +++ b/src/transformer/di.ts @@ -14,13 +14,6 @@ export function di({ ...rest }: DiOptions): TS.CustomTransformers { const typeChecker = rest.program.getTypeChecker(); - const compilerOptions = rest.program.getCompilerOptions(); - - if (compilerOptions.module === typescript.ModuleKind.System) { - throw new TypeError( - `DI-compiler does not currently support SystemJS as a module target.` - ); - } // Prepare a VisitorContext const visitorContext: VisitorContext = {