ts-import icon indicating copy to clipboard operation
ts-import copied to clipboard

Importing TypeScript files dynamically into JavaScript requires additional compilation step, which is troublesome to write for many. Popular typescript-require package seems to be obsolete and doesn't...

Results 7 ts-import issues
Sort by recently updated
recently updated
newest added

Related to _v5.0.0-beta.0_ (it correctly works with _v4.0.0-beta.10_) ```ts import { load } from 'ts-import' await load('./a.mts', { compiledJsExtension: '.cjs' }) ``` ### Result ```console Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with...

- extension.ts ```javascript export default function func(){ } ``` - entry.ts ```javascript import func from "./extension"; ``` The problem I encounter now is that when I use ts-import to import...

I have the following code to disable cache. But it seems the `.cache` folder still gets created. Is there a way to not create .cache folder or delete and re-create...

One can run `node` with custom [ESM loaders](https://nodejs.org/api/esm.html#loaders). Though this API is experimental in Node.js, it was added way back in *node 8* and can be very handy in some...

@radarsu Hello, thank you for sharing this library! I was very happy when I found out that it exists, after some unsuccessful tries of setting up `ts-node` in my code....

I'm using `ts-import` to load files from a directory. Seems that if there are two files that result in same compiled file name they are conflicting with each other for...