|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
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.