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