rollup 2.26.4 → 2.26.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.26.4
4
- Wed, 19 Aug 2020 05:12:35 GMT - commit fada4f6023ef2db3834a9680c54fbf56768c5e0c
3
+ Rollup.js v2.26.5
4
+ Sat, 22 Aug 2020 04:50:56 GMT - commit b2bb960aa5969914e82fd4bcf289bd16eab4a381
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.26.4
4
- Wed, 19 Aug 2020 05:12:35 GMT - commit fada4f6023ef2db3834a9680c54fbf56768c5e0c
3
+ Rollup.js v2.26.5
4
+ Sat, 22 Aug 2020 04:50:56 GMT - commit b2bb960aa5969914e82fd4bcf289bd16eab4a381
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.26.4
4
- Wed, 19 Aug 2020 05:12:35 GMT - commit fada4f6023ef2db3834a9680c54fbf56768c5e0c
3
+ Rollup.js v2.26.5
4
+ Sat, 22 Aug 2020 04:50:56 GMT - commit b2bb960aa5969914e82fd4bcf289bd16eab4a381
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.26.4
4
- Wed, 19 Aug 2020 05:12:35 GMT - commit fada4f6023ef2db3834a9680c54fbf56768c5e0c
3
+ Rollup.js v2.26.5
4
+ Sat, 22 Aug 2020 04:50:56 GMT - commit b2bb960aa5969914e82fd4bcf289bd16eab4a381
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.26.4
4
- Wed, 19 Aug 2020 05:12:35 GMT - commit fada4f6023ef2db3834a9680c54fbf56768c5e0c
3
+ Rollup.js v2.26.5
4
+ Sat, 22 Aug 2020 04:50:56 GMT - commit b2bb960aa5969914e82fd4bcf289bd16eab4a381
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -19,7 +19,7 @@ function _interopNamespaceDefaultOnly(e) {
19
19
  return {__proto__: null, 'default': e};
20
20
  }
21
21
 
22
- var version = "2.26.4";
22
+ var version = "2.26.5";
23
23
 
24
24
  function ensureArray(items) {
25
25
  if (Array.isArray(items)) {
@@ -10444,16 +10444,17 @@ function deconflictChunk(modules, dependenciesToBeDeconflicted, imports, usedNam
10444
10444
  module.scope.deconflict(format, exportNamesByVariable, accessedGlobalsByScope);
10445
10445
  }
10446
10446
  }
10447
- function deconflictImportsEsmOrSystem(usedNames, imports, dependenciesToBeDeconflicted, _interop, _preserveModules, _externalLiveBindings, chunkByModule, syntheticExports) {
10448
- // All namespace imports are contained here;
10449
- // this is needed for synthetic exports and namespace reexports
10447
+ function deconflictImportsEsmOrSystem(usedNames, imports, dependenciesToBeDeconflicted, _interop, preserveModules, _externalLiveBindings, chunkByModule, syntheticExports) {
10448
+ // This is needed for namespace reexports
10450
10449
  for (const dependency of dependenciesToBeDeconflicted.dependencies) {
10451
- dependency.variableName = getSafeName(dependency.suggestedVariableName, usedNames);
10450
+ if (preserveModules || dependency instanceof ExternalModule) {
10451
+ dependency.variableName = getSafeName(dependency.suggestedVariableName, usedNames);
10452
+ }
10452
10453
  }
10453
10454
  for (const variable of imports) {
10454
10455
  const module = variable.module;
10455
10456
  const name = variable.name;
10456
- if (variable.isNamespace) {
10457
+ if (variable.isNamespace && (preserveModules || module instanceof ExternalModule)) {
10457
10458
  variable.setRenderNames(null, (module instanceof ExternalModule ? module : chunkByModule.get(module)).variableName);
10458
10459
  }
10459
10460
  else if (module instanceof ExternalModule && name === 'default') {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.26.4
4
- Wed, 19 Aug 2020 05:12:35 GMT - commit fada4f6023ef2db3834a9680c54fbf56768c5e0c
3
+ Rollup.js v2.26.5
4
+ Sat, 22 Aug 2020 04:50:56 GMT - commit b2bb960aa5969914e82fd4bcf289bd16eab4a381
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.26.4
4
- Wed, 19 Aug 2020 05:12:35 GMT - commit fada4f6023ef2db3834a9680c54fbf56768c5e0c
3
+ Rollup.js v2.26.5
4
+ Sat, 22 Aug 2020 04:50:56 GMT - commit b2bb960aa5969914e82fd4bcf289bd16eab4a381
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.26.4",
3
+ "version": "2.26.5",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",