File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ function reconstructSpecifiers(
8080}
8181
8282function 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments