Skip to content

Commit

Permalink
fix: remove throw statement for SystemJS as compiletarget
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Jun 1, 2020
1 parent 6f9e8a5 commit c8d370e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/transformer/di.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c8d370e

Please sign in to comment.