summaryrefslogtreecommitdiff
path: root/ext/node/module_es_shim.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-20 14:05:13 -0400
committerGitHub <noreply@github.com>2023-03-20 14:05:13 -0400
commitcd53ab5427811bddbed1c30d3733e1df87bb23f9 (patch)
tree0e2ea8e1b45f2d1d4acd20b666ae1d52d40940c6 /ext/node/module_es_shim.js
parentd78db7c0910aded010c2faee9a8c0f128f513985 (diff)
refactor(ext/node): untangle dependencies between js files (#18284)
Moving some code around in `ext/node` is it's a bit better well defined and makes it possible for others to embed it. I expect to see no difference in startup perf with this change.
Diffstat (limited to 'ext/node/module_es_shim.js')
-rw-r--r--ext/node/module_es_shim.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/ext/node/module_es_shim.js b/ext/node/module_es_shim.js
deleted file mode 100644
index 2b7c20e26..000000000
--- a/ext/node/module_es_shim.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-
-const internals = globalThis.__bootstrap.internals;
-const m = internals.require.Module;
-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;