@brillout/import
v0.2.3
Published
Workaround for: - [GitHub - TypeScript - Add flag to not transpile dynamic import() when module is CommonJS #43329](https://github.com/microsoft/TypeScript/issues/43329) - [GitHub - TypeScript - Allow ES Module Type-Only Imports from CJS Modules #49721]
Downloads
196,785
Readme
Workaround for:
- GitHub - TypeScript - Add flag to not transpile dynamic import() when module is CommonJS #43329
- GitHub - TypeScript - Allow ES Module Type-Only Imports from CJS Modules #49721
- Node.js Windows Bug ERR_UNSUPPORTED_ESM_URL_SCHEME
Usage:
import { import_ } from '@brillout/import'
// Same as `import()`
const module = await import_(moduleName)