@@ -478,7 +478,7 @@ translators.set('wasm', async function(url, source) {
478478// Strategy for loading a commonjs TypeScript module
479479translators . set ( 'commonjs-typescript' , function ( url , source ) {
480480 emitExperimentalWarning ( 'Type Stripping' ) ;
481- assertBufferSource ( source , false , 'load' ) ;
481+ assertBufferSource ( source , true , 'load' ) ;
482482 const code = stripTypeScriptTypes ( stringify ( source ) , url ) ;
483483 debug ( `Translating TypeScript ${ url } ` ) ;
484484 return FunctionPrototypeCall ( translators . get ( 'commonjs' ) , this , url , code , false ) ;
@@ -487,7 +487,7 @@ translators.set('commonjs-typescript', function(url, source) {
487487// Strategy for loading an esm TypeScript module
488488translators . set ( 'module-typescript' , function ( url , source ) {
489489 emitExperimentalWarning ( 'Type Stripping' ) ;
490- assertBufferSource ( source , false , 'load' ) ;
490+ assertBufferSource ( source , true , 'load' ) ;
491491 const code = stripTypeScriptTypes ( stringify ( source ) , url ) ;
492492 debug ( `Translating TypeScript ${ url } ` ) ;
493493 return FunctionPrototypeCall ( translators . get ( 'module' ) , this , url , code , false ) ;
0 commit comments