Skip to content

Commit d16ced0

Browse files
committed
Remove type check
1 parent b661563 commit d16ced0

File tree

1 file changed

+1
-5
lines changed
  • src/language-js/parse/postprocess

1 file changed

+1
-5
lines changed

src/language-js/parse/postprocess/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,7 @@ function postprocess(ast, options) {
155155
// https://github.com/babel/babel/issues/17506
156156
// https://github.com/oxc-project/oxc/issues/16074
157157
case "TSImportType":
158-
if (
159-
!node.source &&
160-
node.argument.type === "TSLiteralType" &&
161-
node.argument.literal.type === "Literal"
162-
) {
158+
if (!node.source && node.argument.type === "TSLiteralType") {
163159
node.source = node.argument.literal;
164160
delete node.argument;
165161
}

0 commit comments

Comments
 (0)