Like requireModule but for loading TypeScript files ending in ts or tsx.
When imported, will transform the file using the typescript package,
evaluate the code in the current module context, and apply the same process
to all child imports.
import{ requireTSModule }from'@boost/module'; const result =requireTSModule('../../some/module.ts');
This helper rarely needs to be used directly as requireModule will
call it under the hood based on the file extension.
Like
requireModule
but for loading TypeScript files ending ints
ortsx
. When imported, will transform the file using thetypescript
package, evaluate the code in the current module context, and apply the same process to all child imports.