node-libraries / daynamic-import

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@node-libraries/dynamic-import

Avoid malfunction of DynamicImport on ts-node and call ES Modules from CommonJS

usage

import {dynamicImport} from "@node-libraries/dynamic-import";

const async main() => {
  const { func } = await dynamicImport("any-package");
}

About