rollup 2.45.1 → 2.45.2

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.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.45.2
4
+ Tue, 13 Apr 2021 04:32:03 GMT - commit e9bedf202e4754caaa32d566c9eef0147e1ef3b9
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.45.2
4
+ Tue, 13 Apr 2021 04:32:03 GMT - commit e9bedf202e4754caaa32d566c9eef0147e1ef3b9
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -14,7 +14,7 @@ import * as fs from 'fs';
14
14
  import { lstatSync, realpathSync, readdirSync } from 'fs';
15
15
  import { EventEmitter } from 'events';
16
16
 
17
- var version$1 = "2.45.1";
17
+ var version$1 = "2.45.2";
18
18
 
19
19
  var charToInteger = {};
20
20
  var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -10849,6 +10849,7 @@ class Chunk {
10849
10849
  this.dependencies = new Set();
10850
10850
  this.dynamicDependencies = new Set();
10851
10851
  this.dynamicEntryModules = [];
10852
+ this.dynamicName = null;
10852
10853
  this.exportNamesByVariable = new Map();
10853
10854
  this.exports = new Set();
10854
10855
  this.exportsByName = Object.create(null);
@@ -11013,7 +11014,7 @@ class Chunk {
11013
11014
  this.facadeModule = module;
11014
11015
  this.facadeChunkByModule.set(module, this);
11015
11016
  this.strictFacade = true;
11016
- this.assignFacadeName({}, module);
11017
+ this.dynamicName = getChunkNameFromModule(module);
11017
11018
  }
11018
11019
  else if (this.facadeModule === module &&
11019
11020
  !this.strictFacade &&
@@ -11362,7 +11363,7 @@ class Chunk {
11362
11363
  this.fileName = fileName;
11363
11364
  }
11364
11365
  else {
11365
- this.name = sanitizeFileName(name || facadedModule.chunkName || getAliasName(facadedModule.id));
11366
+ this.name = sanitizeFileName(name || getChunkNameFromModule(facadedModule));
11366
11367
  }
11367
11368
  }
11368
11369
  checkCircularDependencyImport(variable, importingModule) {
@@ -11581,6 +11582,9 @@ class Chunk {
11581
11582
  if (this.manualChunkAlias) {
11582
11583
  return this.manualChunkAlias;
11583
11584
  }
11585
+ if (this.dynamicName) {
11586
+ return this.dynamicName;
11587
+ }
11584
11588
  if (this.fileName) {
11585
11589
  return getAliasName(this.fileName);
11586
11590
  }
@@ -11830,6 +11834,9 @@ class Chunk {
11830
11834
  }
11831
11835
  }
11832
11836
  }
11837
+ function getChunkNameFromModule(module) {
11838
+ return module.chunkName || getAliasName(module.id);
11839
+ }
11833
11840
 
11834
11841
  const concatSep = (out, next) => (next ? `${out}\n${next}` : out);
11835
11842
  const concatDblSep = (out, next) => (next ? `${out}\n\n${next}` : out);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.45.2
4
+ Tue, 13 Apr 2021 04:32:03 GMT - commit e9bedf202e4754caaa32d566c9eef0147e1ef3b9
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.45.2
4
+ Tue, 13 Apr 2021 04:32:03 GMT - commit e9bedf202e4754caaa32d566c9eef0147e1ef3b9
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup