We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b661563 commit d16ced0Copy full SHA for d16ced0
src/language-js/parse/postprocess/index.js
@@ -155,11 +155,7 @@ function postprocess(ast, options) {
155
// https://github.com/babel/babel/issues/17506
156
// https://github.com/oxc-project/oxc/issues/16074
157
case "TSImportType":
158
- if (
159
- !node.source &&
160
- node.argument.type === "TSLiteralType" &&
161
- node.argument.literal.type === "Literal"
162
- ) {
+ if (!node.source && node.argument.type === "TSLiteralType") {
163
node.source = node.argument.literal;
164
delete node.argument;
165
}
0 commit comments