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
- Host: GitHub
- URL: https://github.com/samchon/import2
- Owner: samchon
- License: mit
- Created: 2022-08-14T16:03:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-09T12:58:37.000Z (over 3 years ago)
- Last Synced: 2025-04-20T03:32:20.386Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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");
```