v3 new release (#84)

swap to graphql
This commit is contained in:
github-actions[bot]
2022-07-11 13:48:02 -04:00
committed by GitHub
parent 20d2b4f98d
commit e4f3964f67
1492 changed files with 63799 additions and 63001 deletions

View File

@ -80,6 +80,7 @@ function rewriteModuleStatementsAndPrepareHeader(path, {
importInterop = noInterop ? "none" : "babel",
lazy,
esNamespaceOnly,
filename,
constantReexports = loose,
enumerableModuleMeta = loose,
noIncompleteNsImportDetection
@ -93,7 +94,8 @@ function rewriteModuleStatementsAndPrepareHeader(path, {
importInterop,
initializeReexports: constantReexports,
lazy,
esNamespaceOnly
esNamespaceOnly,
filename
});
if (!allowTopLevelThis) {
@ -355,7 +357,11 @@ function buildExportInitializationStatements(programPath, metadata, constantReex
}
}
initStatements.sort((a, b) => a[0] > b[0] ? 1 : -1);
initStatements.sort(([a], [b]) => {
if (a < b) return -1;
if (b < a) return 1;
return 0;
});
const results = [];
if (noIncompleteNsImportDetection) {
@ -365,7 +371,9 @@ function buildExportInitializationStatements(programPath, metadata, constantReex
} else {
const chunkSize = 100;
for (let i = 0, uninitializedExportNames = []; i < initStatements.length; i += chunkSize) {
for (let i = 0; i < initStatements.length; i += chunkSize) {
let uninitializedExportNames = [];
for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) {
const [exportName, initStatement] = initStatements[i + j];