source: imaps-frontend/node_modules/@humanwhocodes/module-importer/dist/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: 561 bytes
Line 
1import { createRequire } from 'module';
2import { fileURLToPath } from 'url';
3import { dirname } from 'path';
4
5/**
6 * @fileoverview Universal module importer
7 */
8
9//-----------------------------------------------------------------------------
10// Helpers
11//-----------------------------------------------------------------------------
12
13const __filename = fileURLToPath(import.meta.url);
14const __dirname = dirname(__filename);
15const require = createRequire(__dirname + "/");
16const { ModuleImporter } = require("./module-importer.cjs");
17
18export { ModuleImporter };
Note: See TracBrowser for help on using the repository browser.