An open API service indexing awesome lists of open source software.

https://github.com/samchon/import2

lazy import function who can prevent transpiled to require
https://github.com/samchon/import2

Last synced: about 1 year ago
JSON representation

lazy import function who can prevent transpiled to require

Awesome Lists containing this project

README

          

# Import2
A dynamic `import()` function which can avoid transpiling to `require()` function.

It also can avoid unexpected bundling.

```typescript
import import2 from "import2";
const fs = await import2("fs");
```