Import invariant from CompilerError
Lauren Tan committed
Nov 3, 2022 at 18:47 UTC
acb49990492dc6c258fb3b0d0acc6dfabde7d3eb
2 files changed
+3
-3
compiler/forget/src/HIR/SSAify.ts
+1
-1
@@ -1,5 +1,5 @@
1
-import invariant from "invariant";
1
import { assertExhaustive } from "../Common/utils";
2
+import { invariant } from "../CompilerError";
3
import {
4
BasicBlock,
5
BlockId,
compiler/forget/src/LIR/PrettyPrinter.ts
+2
-2
@@ -7,9 +7,8 @@
7
8
import generate from "@babel/generator";
9
import * as t from "@babel/types";
10
-import invariant from "invariant";
11
-import * as LIR from "../LIR";
10
import { assertExhaustive } from "../Common/utils";
11
+import { invariant } from "../CompilerError";
12
import * as IR from "../IR";
13
import {
14
addComments,
@@ -17,6 +16,7 @@ import {
16
revertAddComments,
17
revertRenameReactiveVal,
18
} from "../IR/PrettyPrinter";
19
+import * as LIR from "../LIR";
20
import {
21
EntryKind,
22
isExprEntry,