PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/modules/interactivity-router/index.js +5 -4 23.7.1 → trunk View file →
@@ -443,9 +443,9 @@
443 443 let resolvedSource = "";
444 444 if (!imports.length) {
445 445 resolvedSource += source;
446 446 } else {
447 - let pushStringTo = function(originalIndex) {
447 + let pushStringTo2 = function(originalIndex) {
448 448 while (dynamicImportEndStack.length && dynamicImportEndStack[dynamicImportEndStack.length - 1] < originalIndex) {
449 449 const dynamicImportEnd = dynamicImportEndStack.pop();
450 450 resolvedSource += `${source.slice(
451 451 lastIndex,
@@ -455,8 +455,9 @@
455 455 }
456 456 resolvedSource += source.slice(lastIndex, originalIndex);
457 457 lastIndex = originalIndex;
458 458 };
459 + var pushStringTo = pushStringTo2;
459 460 let lastIndex = 0;
460 461 let depIndex = 0;
461 462 const dynamicImportEndStack = [];
462 463 for (const {
@@ -484,9 +485,9 @@
484 485 //# sourceURL=${depLoad.responseUrl}?cycle`
485 486 );
486 487 }
487 488 }
488 - pushStringTo(start - 1);
489 + pushStringTo2(start - 1);
489 490 resolvedSource += `/*${source.slice(
490 491 start - 1,
491 492 statementEnd
492 493 )}*/${urlJsString(blobUrl)}`;
@@ -497,9 +498,9 @@
497 498 lastIndex = statementEnd;
498 499 } else if (dynamicImportIndex === -2) {
499 500 throw Error("The import.meta property is not supported.");
500 501 } else {
501 - pushStringTo(statementStart);
502 + pushStringTo2(statementStart);
502 503 resolvedSource += `wpInteractivityRouterImport(`;
503 504 dynamicImportEndStack.push(statementEnd - 1);
504 505 lastIndex = start;
505 506 }
@@ -508,9 +509,9 @@
508 509 resolvedSource += `
509 510 ;import{u$_}from'${load.shellUrl}';try{u$_({${exports.filter((e) => e.ln).map(({ s, e, ln }) => `${source.slice(s, e)}:${ln}`).join(",")}})}catch(_){};
510 511 `;
511 512 }
512 - pushStringTo(source.length);
513 + pushStringTo2(source.length);
513 514 }
514 515 let hasSourceURL = false;
515 516 resolvedSource = resolvedSource.replace(
516 517 sourceMapURLRegEx,