Package Exports
- @brillout/import
- @brillout/import/dist/cjs/index.js
- @brillout/import/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@brillout/import) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Usage:
import { import_ } from '@brillout/import'
// Same as `import()`
const module = await import_(moduleName)Same as import() but:
- Avoids bundlers from bundling
moduleName, such as Webpack or Cloudflare Workers's wrangler bundler. - Avoids TypeScript from transpiling
import()torequire(). - Fixes Node.js windows bug
ERR_UNSUPPORTED_ESM_URL_SCHEME.
Zero dependency. (And doesn't dependend on any Node.js API.)