mirror of
https://github.com/Azure/setup-helm.git
synced 2025-09-09 13:36:37 +00:00
committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
14
node_modules/@babel/helper-module-transforms/lib/index.js
generated
vendored
14
node_modules/@babel/helper-module-transforms/lib/index.js
generated
vendored
@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user