@@ -214,7 +214,7 @@ export async function handleAfterEmitAssets(
214214 namespace ,
215215 ) ;
216216 } catch ( e ) {
217- logger . error ( e ) ;
217+ logger . debug ( e ) ;
218218 }
219219 }
220220 timeEnd ( 'ensureModulesChunkGraph.afterEmit.start' ) ;
@@ -252,7 +252,7 @@ export async function handleEmitAssets(options: SourceMapAssetOptions) {
252252 namespace ,
253253 ) ;
254254 } catch ( e ) {
255- logger . error ( e ) ;
255+ logger . debug ( e ) ;
256256 }
257257 }
258258 timeEnd ( 'ensureModulesChunkGraph.afterEmit.start' ) ;
@@ -286,7 +286,7 @@ function parseAsset(
286286 // Add defensive checks for the source chain
287287 assetContent = asset . source ?. source ?. source ?.( ) || '' ;
288288 if ( ! assetContent ) {
289- logger . error ( `Failed to get source content for asset: ${ assetName } ` ) ;
289+ logger . debug ( `Failed to get source content for asset: ${ assetName } ` ) ;
290290 return {
291291 assetName,
292292 assetContent : '' ,
@@ -301,7 +301,7 @@ function parseAsset(
301301 ) ;
302302 const bundledCode = bundledAsset ?. source ?. source ?. source ?.( ) || '' ;
303303 if ( ! bundledCode ) {
304- logger . error ( `Failed to get bundled code for asset: ${ map . file } ` ) ;
304+ logger . debug ( `Failed to get bundled code for asset: ${ map . file } ` ) ;
305305 return { assetName, assetContent, assetLinesCodeList : [ ] , map } ;
306306 }
307307 assetLinesCodeList = bundledCode . split ( / \r ? \n / ) ;
@@ -314,7 +314,7 @@ function parseAsset(
314314 map = asset . source ?. sourceAndMap ?.( ) ?. map || null ;
315315 }
316316 } catch ( error ) {
317- logger . error ( `Error parsing asset ${ assetName } :` , error ) ;
317+ logger . debug ( `Error parsing asset ${ assetName } :` , error ) ;
318318 return { assetName, assetContent : '' , assetLinesCodeList : [ ] , map : null } ;
319319 }
320320
0 commit comments