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/es/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
@@ -13,7 +13,7 @@ import { createHash as createHash$1 } from 'crypto';
13
13
  import { writeFile as writeFile$1, readdirSync, mkdirSync, readFile as readFile$1, lstatSync, realpathSync } from 'fs';
14
14
  import { EventEmitter } from 'events';
15
15
 
16
- var version = "2.26.4";
16
+ var version = "2.26.5";
17
17
 
18
18
  var charToInteger = {};
19
19
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -10388,16 +10388,17 @@ function deconflictChunk(modules, dependenciesToBeDeconflicted, imports, usedNam
10388
10388
  module.scope.deconflict(format, exportNamesByVariable, accessedGlobalsByScope);
10389
10389
  }
10390
10390
  }
10391
- function deconflictImportsEsmOrSystem(usedNames, imports, dependenciesToBeDeconflicted, _interop, _preserveModules, _externalLiveBindings, chunkByModule, syntheticExports) {
10392
- // All namespace imports are contained here;
10393
- // this is needed for synthetic exports and namespace reexports
10391
+ function deconflictImportsEsmOrSystem(usedNames, imports, dependenciesToBeDeconflicted, _interop, preserveModules, _externalLiveBindings, chunkByModule, syntheticExports) {
10392
+ // This is needed for namespace reexports
10394
10393
  for (const dependency of dependenciesToBeDeconflicted.dependencies) {
10395
- dependency.variableName = getSafeName(dependency.suggestedVariableName, usedNames);
10394
+ if (preserveModules || dependency instanceof ExternalModule) {
10395
+ dependency.variableName = getSafeName(dependency.suggestedVariableName, usedNames);
10396
+ }
10396
10397
  }
10397
10398
  for (const variable of imports) {
10398
10399
  const module = variable.module;
10399
10400
  const name = variable.name;
10400
- if (variable.isNamespace) {
10401
+ if (variable.isNamespace && (preserveModules || module instanceof ExternalModule)) {
10401
10402
  variable.setRenderNames(null, (module instanceof ExternalModule ? module : chunkByModule.get(module)).variableName);
10402
10403
  }
10403
10404
  else if (module instanceof ExternalModule && name === 'default') {
@@ -1,14 +1,14 @@
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
8
8
 
9
9
  Released under the MIT License.
10
10
  */
11
- import { defaultOnWarn, ensureArray as ensureArray$1, warnUnknownOptions, fseventsImporter as rollup, rollupInternal } from './rollup.js';
11
+ import { defaultOnWarn, ensureArray as ensureArray$1, warnUnknownOptions, fseventsImporter, rollupInternal } from './rollup.js';
12
12
  import sysPath, { sep, resolve } from 'path';
13
13
  import 'crypto';
14
14
  import fs from 'fs';
@@ -5587,7 +5587,7 @@ const { promisify: promisify$2 } = util;
5587
5587
 
5588
5588
  let fsevents;
5589
5589
  try {
5590
- fsevents = rollup.getFsEvents();
5590
+ fsevents = fseventsImporter.getFsEvents();
5591
5591
  } catch (error) {
5592
5592
  if (process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR) console.error(error);
5593
5593
  }
@@ -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