Unverified Commit af5d9829 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Refresh Turbopack runtime source map after rebase

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent c80ed888
...@@ -53,6 +53,11 @@ const REEXPORTED_OBJECTS = new WeakMap(); ...@@ -53,6 +53,11 @@ const REEXPORTED_OBJECTS = new WeakMap();
} }
const contextPrototype = Context.prototype; const contextPrototype = Context.prototype;
contextPrototype.M = moduleFactories; contextPrototype.M = moduleFactories;
contextPrototype.R = {
shareScopes: Object.create(null),
initScopes: Object.create(null),
remoteInitializations: Object.create(null)
};
const hasOwnProperty = Object.prototype.hasOwnProperty; const hasOwnProperty = Object.prototype.hasOwnProperty;
const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag; const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag;
function defineProp(obj, name, options) { function defineProp(obj, name, options) {
...@@ -874,7 +879,10 @@ function requireChunk(chunkPath, sourceModuleId) { ...@@ -874,7 +879,10 @@ function requireChunk(chunkPath, sourceModuleId) {
} }
} }
contextPrototype.l = loadChunkAsync; contextPrototype.l = loadChunkAsync;
function loadChunkAsyncByUrl(chunkUrl) { function loadChunkAsyncByUrl(chunkUrl, resolveOnLoad = false) {
if (resolveOnLoad) {
return Promise.reject(new Error(`External script loading is only supported in browser client code: ${chunkUrl}`));
}
const path1 = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT)); const path1 = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT));
return loadChunkAsync.call(this, path1); return loadChunkAsync.call(this, path1);
} }
...@@ -1611,7 +1619,7 @@ runtimeModules = globalThis.__turbopack_runtime_modules__; ...@@ -1611,7 +1619,7 @@ runtimeModules = globalThis.__turbopack_runtime_modules__;
const nodeDevContextPrototype = Context.prototype; const nodeDevContextPrototype = Context.prototype;
nodeDevContextPrototype.q = exportUrl; nodeDevContextPrototype.q = exportUrl;
nodeDevContextPrototype.c = moduleCache; nodeDevContextPrototype.c = moduleCache;
nodeDevContextPrototype.R = resolvePathFromModule; nodeDevContextPrototype.p = resolvePathFromModule;
nodeDevContextPrototype.C = clearChunkCache; nodeDevContextPrototype.C = clearChunkCache;
markDevModulesLoaded = true; markDevModulesLoaded = true;
function interceptDevModuleExecution(_module) { function interceptDevModuleExecution(_module) {
......
...@@ -53,6 +53,11 @@ const REEXPORTED_OBJECTS = new WeakMap(); ...@@ -53,6 +53,11 @@ const REEXPORTED_OBJECTS = new WeakMap();
} }
const contextPrototype = Context.prototype; const contextPrototype = Context.prototype;
contextPrototype.M = moduleFactories; contextPrototype.M = moduleFactories;
contextPrototype.R = {
shareScopes: Object.create(null),
initScopes: Object.create(null),
remoteInitializations: Object.create(null)
};
const hasOwnProperty = Object.prototype.hasOwnProperty; const hasOwnProperty = Object.prototype.hasOwnProperty;
const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag; const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag;
function defineProp(obj, name, options) { function defineProp(obj, name, options) {
...@@ -874,7 +879,10 @@ function requireChunk(chunkPath, sourceModuleId) { ...@@ -874,7 +879,10 @@ function requireChunk(chunkPath, sourceModuleId) {
} }
} }
contextPrototype.l = loadChunkAsync; contextPrototype.l = loadChunkAsync;
function loadChunkAsyncByUrl(chunkUrl) { function loadChunkAsyncByUrl(chunkUrl, resolveOnLoad = false) {
if (resolveOnLoad) {
return Promise.reject(new Error(`External script loading is only supported in browser client code: ${chunkUrl}`));
}
const path1 = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT)); const path1 = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT));
return loadChunkAsync.call(this, path1); return loadChunkAsync.call(this, path1);
} }
...@@ -898,7 +906,7 @@ const moduleCache = new Map(); ...@@ -898,7 +906,7 @@ const moduleCache = new Map();
const nodeContextPrototype = Context.prototype; const nodeContextPrototype = Context.prototype;
nodeContextPrototype.q = exportUrl; nodeContextPrototype.q = exportUrl;
nodeContextPrototype.c = moduleCache; nodeContextPrototype.c = moduleCache;
nodeContextPrototype.R = resolvePathFromModule; nodeContextPrototype.p = resolvePathFromModule;
nodeContextPrototype.C = clearChunkCache; nodeContextPrototype.C = clearChunkCache;
function instantiateModule(id, sourceType, sourceData) { function instantiateModule(id, sourceType, sourceData) {
const moduleFactory = moduleFactories.get(id); const moduleFactory = moduleFactories.get(id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment