net.coruscation.js4clj.require

load-commonjs-module

(load-commonjs-module name)
Load a module using `require`, return the module object.

load-es-module

(load-es-module module-name)
Load a module using `import()`, return the module object

require-cjs

(require-cjs & module-specs)
Like `require-js` but use `require` internally instead of `import`

It exists mainly due to `import` provided by GraalJS will error out when there's an `exports` field in the package.json, even when `main` field is presented. While `require` will ignore `exports`.

Also check https://github.com/oracle/graaljs/pull/904, this function will be useless if the upstream issue is resolved.

require-helper

(require-helper require-module-fn)

require-js

(require-js & module-specs)
(require-js '["module-name" :alias ns])

Import a JavaScript module and add its exports to namespace `ns`

Like node.js, this function finds JavaScript modules from the node_modules directory,
  it supports ECMAScript modules and legacy CommonJS modules.