UNPKG

clime

Version:

The command-line interface framework for TypeScript.

14 lines 377 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function dynamicImport(path) { try { return require(path); } catch (_a) { // @ts-ignore const url = require('url').pathToFileURL(path).toString(); return eval(`import(url)`); } } exports.dynamicImport = dynamicImport; //# sourceMappingURL=module.js.map