mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
refactor(javascript): normalize erased expression syntax once
This commit is contained in:
@@ -14,6 +14,7 @@ import type {
|
||||
import {
|
||||
readExactJavaScriptLiteral,
|
||||
semanticStaticPropertyName,
|
||||
unwrapJavaScriptExpression,
|
||||
} from "./javascriptAstValues.js";
|
||||
import { compareUnicodeCodePoints } from "../unicodeCodePointOrder.js";
|
||||
|
||||
@@ -100,8 +101,8 @@ const findChunkRuntime = (node: t.Node): string | undefined => {
|
||||
pending.push(current.right, current.left);
|
||||
continue;
|
||||
}
|
||||
if (t.isParenthesizedExpression(current) || t.isTSAsExpression(current))
|
||||
pending.push(current.expression);
|
||||
const unwrapped = unwrapJavaScriptExpression(current).node;
|
||||
if (unwrapped !== current) pending.push(unwrapped);
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user