source: imaps-frontend/node_modules/@humanwhocodes/module-importer/src/module-importer.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 733 bytes
Line 
1/**
2 * @fileoverview Universal module importer
3 */
4
5//-----------------------------------------------------------------------------
6// Imports
7//-----------------------------------------------------------------------------
8
9import { createRequire } from "module";
10import { fileURLToPath } from "url";
11import { dirname } from "path";
12
13//-----------------------------------------------------------------------------
14// Helpers
15//-----------------------------------------------------------------------------
16
17const __filename = fileURLToPath(import.meta.url);
18const __dirname = dirname(__filename);
19const require = createRequire(__dirname + "/");
20const { ModuleImporter } = require("./module-importer.cjs");
21
22export { ModuleImporter };
Note: See TracBrowser for help on using the repository browser.