aboutsummaryrefslogtreecommitdiffstats
path: root/loader.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-26 21:17:43 -0700
committerAdam Soltys <[email protected]>2024-08-26 21:17:43 -0700
commitfe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 (patch)
treeaa8f34e1692bd2d638a2c996eeadb58671d07aea /loader.js
parent00e43ddc0bf3d6dd719fc9295d156567fa2fecfb (diff)
downloadcoinos-server-fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7.tar.gz
coinos-server-fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7.zip
typescript
Diffstat (limited to 'loader.js')
-rw-r--r--loader.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/loader.js b/loader.js
deleted file mode 100644
index b15c5d6e..00000000
--- a/loader.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import path from "path";
-import fs from "fs";
-
-export function resolve(specifier, context, nextResolve) {
- const { parentURL = null } = context;
-
- if (specifier.startsWith("$")) {
- if (specifier.startsWith("$config")) {
- specifier = "file://" + path.resolve(".") + "/config.js";
- } else if (specifier.startsWith("$")) {
- specifier =
- specifier.replace(/^\$/, "file://" + path.resolve(".") + "/") + ".js";
- }
-
- return {
- shortCircuit: true,
- url: new URL(specifier).href,
- };
- }
-
- return nextResolve(specifier, context);
-}