Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

import2

samchon30.9kMIT1.0.3TypeScript support: included

Dynamic import function which can avoid transpiling to require function

import, require, avoid, transpile, typescript

readme

Import2

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

It also can avoid unexpected bundling.

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