@@ -152,6 +152,7 @@ const {
152152  setHasStartedUserCJSExecution, 
153153  stripBOM, 
154154  toRealPath, 
155+   stripTypeScriptTypes, 
155156}  =  require ( 'internal/modules/helpers' ) ; 
156157const  packageJsonReader  =  require ( 'internal/modules/package_json_reader' ) ; 
157158const  {  getOptionValue,  getEmbedderOptions }  =  require ( 'internal/options' ) ; 
@@ -1373,7 +1374,6 @@ function loadESMFromCJS(mod, filename) {
13731374    if  ( isUnderNodeModules ( filename ) )  { 
13741375      throw  new  ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING ( filename ) ; 
13751376    } 
1376-     const  {  stripTypeScriptTypes }  =  require ( 'internal/modules/helpers' ) ; 
13771377    source  =  stripTypeScriptTypes ( source ,  filename ) ; 
13781378  } 
13791379  const  cascadedLoader  =  require ( 'internal/modules/esm/loader' ) . getOrInitializeCascadedLoader ( ) ; 
@@ -1587,7 +1587,6 @@ function loadCTS(module, filename) {
15871587    throw  new  ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING ( filename ) ; 
15881588  } 
15891589  const  source  =  getMaybeCachedSource ( module ,  filename ) ; 
1590-   const  {  stripTypeScriptTypes }  =  require ( 'internal/modules/helpers' ) ; 
15911590  const  code  =  stripTypeScriptTypes ( source ,  filename ) ; 
15921591  module . _compile ( code ,  filename ,  'commonjs' ) ; 
15931592} 
@@ -1603,7 +1602,6 @@ function loadTS(module, filename) {
16031602  } 
16041603  // If already analyzed the source, then it will be cached. 
16051604  const  source  =  getMaybeCachedSource ( module ,  filename ) ; 
1606-   const  {  stripTypeScriptTypes }  =  require ( 'internal/modules/helpers' ) ; 
16071605  const  content  =  stripTypeScriptTypes ( source ,  filename ) ; 
16081606  let  format ; 
16091607  const  pkg  =  packageJsonReader . getNearestParentPackageJSON ( filename ) ; 
0 commit comments