Skip to content

Commit cb048aa

Browse files
committed
fix: remove TypeScript error suppression comments related to babel/types version mismatches
1 parent f169c42 commit cb048aa

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

lib/detector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function reconstructSpecifiers(
8080
}
8181

8282
function reconstruct(node: babelTypes.Node) {
83-
// @ts-expect-error Type mismatch due to @babel/types version in @types/babel__generator
8483
let v = generate(node, { comments: false }).code.replace(/\n/g, '');
8584
let v2;
8685

lib/esm-transformer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function hasImportMeta(code: string): boolean {
4444

4545
let found = false;
4646

47-
// @ts-expect-error Type mismatch due to @babel/types version in @types/babel__traverse
4847
traverse(ast as t.File, {
4948
// Detect import.meta usage
5049
MetaProperty(path: NodePath<t.MetaProperty>) {
@@ -96,7 +95,6 @@ function detectESMFeatures(
9695
const topLevelAwait: UnsupportedFeature[] = [];
9796
const unsupportedFeatures: UnsupportedFeature[] = [];
9897

99-
// @ts-expect-error Type mismatch due to @babel/types version in @types/babel__traverse
10098
traverse(ast as t.File, {
10199
// Detect top-level await - can be handled with async IIFE wrapper
102100
AwaitExpression(path: NodePath<t.AwaitExpression>) {
@@ -291,7 +289,6 @@ export function transformESMtoCJS(
291289
const codeLines = code.split('\n');
292290
const importLineIndices = new Set<number>();
293291

294-
// @ts-expect-error Type mismatch due to @babel/types version
295292
traverse(ast as t.File, {
296293
ExportNamedDeclaration() {
297294
hasExports = true;

0 commit comments

Comments
 (0)