summaryrefslogtreecommitdiff
path: root/ext/node/module_es_shim.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-08-24 14:54:20 +0200
committerGitHub <noreply@github.com>2022-08-24 14:54:20 +0200
commit5268fa0e0f34571f0fc615eb665747863aca311e (patch)
tree3c23531d8484e4821662bc822634eabb9862dd57 /ext/node/module_es_shim.js
parentf3bde1d53b4710fb526286e27af29a55f5da18c7 (diff)
fix(unstable): various resolution bugs for npm: specifiers (#15546)
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'ext/node/module_es_shim.js')
-rw-r--r--ext/node/module_es_shim.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/node/module_es_shim.js b/ext/node/module_es_shim.js
new file mode 100644
index 000000000..ab128e7a9
--- /dev/null
+++ b/ext/node/module_es_shim.js
@@ -0,0 +1,17 @@
+const m = Deno[Deno.internal].require.moduleExports;
+export const _cache = m._cache;
+export const _extensions = m._extensions;
+export const _findPath = m._findPath;
+export const _initPaths = m._initPaths;
+export const _load = m._load;
+export const _nodeModulePaths = m._nodeModulePaths;
+export const _pathCache = m._pathCache;
+export const _preloadModules = m._preloadModules;
+export const _resolveFilename = m._resolveFilename;
+export const _resolveLookupPaths = m._resolveLookupPaths;
+export const builtinModules = m.builtinModules;
+export const createRequire = m.createRequire;
+export const globalPaths = m.globalPaths;
+export const Module = m.Module;
+export const wrap = m.wrap;
+export default m;