@@ -34,7 +34,7 @@ Index: /rollup/dist/es/shared/node-entry.js
3434 const accessedMetaUrlGlobals = {
3535 amd: ['document', 'module', 'URL'],
3636- cjs: ['document', 'require', 'URL', DOCUMENT_CURRENT_SCRIPT],
37- + cjs: ['require', 'URL'],
37+ + cjs: ['require', 'URL', DOCUMENT_CURRENT_SCRIPT ],
3838 es: [],
3939 iife: ['document', 'URL', DOCUMENT_CURRENT_SCRIPT],
4040 system: ['module'],
@@ -70,7 +70,7 @@ Index: /rollup/dist/es/shared/node-entry.js
7070 system: (property, { snippets: { getPropertyAccess } }) => property === null ? `module.meta` : `module.meta${getPropertyAccess(property)}`,
7171 umd: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromFullPath('__filename')} : ${getUrlFromDocument(chunkId, true)})`)
7272 };
73- @@ -9336 ,9 +9336 ,9 @@
73+ @@ -9337 ,9 +9337 ,9 @@
7474 return segs[segs.length - 2];
7575 }
7676
@@ -81,18 +81,18 @@ Index: /rollup/dist/es/shared/node-entry.js
8181 return utils;
8282 }
8383
84- @@ -17493 ,9 +17493 ,9 @@
84+ @@ -17535 ,9 +17535 ,9 @@
8585 // Synthetic namespaces should not hide "regular" exports of the same name
8686 if (module.info.syntheticNamedExports === name) {
8787 continue;
8888 }
89- - const [variable, indirectExternal ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
90- + const [variable, indirectExternal ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
89+ - const [variable, options ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
90+ + const [variable, options ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
9191 // We are creating a copy to handle the case where the same binding is
9292 // imported through different namespace reexports gracefully
9393 copyNameToModulesMap(searchedNamesAndModules));
94- if (module instanceof ExternalModule || indirectExternal) {
95- @@ -18228 ,9 +18228 ,9 @@
94+ if (module instanceof ExternalModule || options?. indirectExternal) {
95+ @@ -18270 ,9 +18270 ,9 @@
9696 this.facadeChunkByModule.set(module, this);
9797 continue;
9898 }
@@ -103,7 +103,7 @@ Index: /rollup/dist/es/shared/node-entry.js
103103 name => ({
104104 name
105105 }));
106- @@ -19704 ,9 +19704 ,9 @@
106+ @@ -19746 ,9 +19746 ,9 @@
107107 }
108108 function mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom) {
109109 const { small } = chunkPartition;
@@ -114,7 +114,7 @@ Index: /rollup/dist/es/shared/node-entry.js
114114 minChunkSize <= 1 ? 1 : Infinity);
115115 if (bestTargetChunk) {
116116 const { containedAtoms, correlatedAtoms, modules, pure, size } = mergedChunk;
117- @@ -19760 ,9 +19760 ,9 @@
117+ @@ -19802 ,9 +19802 ,9 @@
118118 * is returned.
119119 * Merging will not produce cycles if none of the direct non-merged
120120 * dependencies of a chunk have the other chunk as a transitive dependency.
@@ -129,7 +129,7 @@ Index: /rollup/dist/shared/rollup.js
129129===================================================================
130130--- /rollup/dist/shared/rollup.js
131131+++ /rollup/dist/shared/rollup.js
132- @@ -1233 ,9 +1233 ,9 @@
132+ @@ -1234 ,9 +1234 ,9 @@
133133 return segs[segs.length - 2];
134134 }
135135
@@ -140,7 +140,7 @@ Index: /rollup/dist/shared/rollup.js
140140 return utils;
141141 }
142142
143- @@ -8788 ,9 +8788 ,9 @@
143+ @@ -8789 ,9 +8789 ,9 @@
144144 : [...path1, ...path2];
145145 };
146146
@@ -151,7 +151,7 @@ Index: /rollup/dist/shared/rollup.js
151151 initPath, context, kind) {
152152 super(name);
153153 this.init = init;
154- @@ -10224 ,9 +10224 ,9 @@
154+ @@ -10225 ,9 +10225 ,9 @@
155155 super.initialise();
156156 if (this.directive &&
157157 this.directive !== 'use strict' &&
@@ -162,7 +162,7 @@ Index: /rollup/dist/shared/rollup.js
162162 parseAst_js.logModuleLevelDirective(this.directive, this.scope.context.module.id), this.start);
163163 }
164164 }
165- @@ -11526 ,20 +11526 ,20 @@
165+ @@ -11527 ,20 +11527 ,20 @@
166166 this.scope.addAccessedGlobals(accessedGlobals, accessedGlobalsByScope);
167167 }
168168 }
@@ -172,7 +172,7 @@ Index: /rollup/dist/shared/rollup.js
172172 const accessedMetaUrlGlobals = {
173173 amd: ['document', 'module', 'URL'],
174174- cjs: ['document', 'require', 'URL', DOCUMENT_CURRENT_SCRIPT],
175- + cjs: ['require', 'URL'],
175+ + cjs: ['require', 'URL', DOCUMENT_CURRENT_SCRIPT ],
176176 es: [],
177177 iife: ['document', 'URL', DOCUMENT_CURRENT_SCRIPT],
178178 system: ['module'],
@@ -186,7 +186,7 @@ Index: /rollup/dist/shared/rollup.js
186186 iife: ['document', 'URL'],
187187 system: ['module', 'URL'],
188188 umd: ['document', 'require', 'URL']
189- @@ -11553 ,9 +11553 ,9 @@
189+ @@ -11554 ,9 +11554 ,9 @@
190190 : property === 'url'
191191 ? urlMechanism
192192 : 'undefined';
@@ -197,7 +197,7 @@ Index: /rollup/dist/shared/rollup.js
197197 const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
198198 const relativeUrlMechanisms = {
199199 amd: relativePath => {
200- @@ -11570 ,9 +11570 ,9 @@
200+ @@ -11571 ,9 +11571 ,9 @@
201201 umd: relativePath => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath, true)})`
202202 };
203203 const importMetaMechanisms = {
@@ -208,18 +208,18 @@ Index: /rollup/dist/shared/rollup.js
208208 system: (property, { snippets: { getPropertyAccess } }) => property === null ? `module.meta` : `module.meta${getPropertyAccess(property)}`,
209209 umd: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromFullPath('__filename')} : ${getUrlFromDocument(chunkId, true)})`)
210210 };
211- @@ -19095 ,9 +19095 ,9 @@
211+ @@ -19137 ,9 +19137 ,9 @@
212212 // Synthetic namespaces should not hide "regular" exports of the same name
213213 if (module.info.syntheticNamedExports === name) {
214214 continue;
215215 }
216- - const [variable, indirectExternal ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
217- + const [variable, indirectExternal ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
216+ - const [variable, options ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
217+ + const [variable, options ] = getVariableForExportNameRecursive(module, name, importerForSideEffects, true,
218218 // We are creating a copy to handle the case where the same binding is
219219 // imported through different namespace reexports gracefully
220220 copyNameToModulesMap(searchedNamesAndModules));
221- if (module instanceof ExternalModule || indirectExternal) {
222- @@ -19721 ,9 +19721 ,9 @@
221+ if (module instanceof ExternalModule || options?. indirectExternal) {
222+ @@ -19763 ,9 +19763 ,9 @@
223223 this.facadeChunkByModule.set(module, this);
224224 continue;
225225 }
@@ -230,7 +230,7 @@ Index: /rollup/dist/shared/rollup.js
230230 name => ({
231231 name
232232 }));
233- @@ -21197 ,9 +21197 ,9 @@
233+ @@ -21239 ,9 +21239 ,9 @@
234234 }
235235 function mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom) {
236236 const { small } = chunkPartition;
@@ -241,7 +241,7 @@ Index: /rollup/dist/shared/rollup.js
241241 minChunkSize <= 1 ? 1 : Infinity);
242242 if (bestTargetChunk) {
243243 const { containedAtoms, correlatedAtoms, modules, pure, size } = mergedChunk;
244- @@ -21253 ,9 +21253 ,9 @@
244+ @@ -21295 ,9 +21295 ,9 @@
245245 * is returned.
246246 * Merging will not produce cycles if none of the direct non-merged
247247 * dependencies of a chunk have the other chunk as a transitive dependency.
0 commit comments