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/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
@@ -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
@@ -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
@@ -32,7 +32,7 @@ function _interopNamespaceDefaultOnly(e) {
32
32
 
33
33
  var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
34
34
 
35
- var version$1 = "2.45.1";
35
+ var version$1 = "2.45.2";
36
36
 
37
37
  function ensureArray(items) {
38
38
  if (Array.isArray(items)) {
@@ -10932,6 +10932,7 @@ class Chunk {
10932
10932
  this.dependencies = new Set();
10933
10933
  this.dynamicDependencies = new Set();
10934
10934
  this.dynamicEntryModules = [];
10935
+ this.dynamicName = null;
10935
10936
  this.exportNamesByVariable = new Map();
10936
10937
  this.exports = new Set();
10937
10938
  this.exportsByName = Object.create(null);
@@ -11096,7 +11097,7 @@ class Chunk {
11096
11097
  this.facadeModule = module;
11097
11098
  this.facadeChunkByModule.set(module, this);
11098
11099
  this.strictFacade = true;
11099
- this.assignFacadeName({}, module);
11100
+ this.dynamicName = getChunkNameFromModule(module);
11100
11101
  }
11101
11102
  else if (this.facadeModule === module &&
11102
11103
  !this.strictFacade &&
@@ -11445,7 +11446,7 @@ class Chunk {
11445
11446
  this.fileName = fileName;
11446
11447
  }
11447
11448
  else {
11448
- this.name = sanitizeFileName(name || facadedModule.chunkName || getAliasName(facadedModule.id));
11449
+ this.name = sanitizeFileName(name || getChunkNameFromModule(facadedModule));
11449
11450
  }
11450
11451
  }
11451
11452
  checkCircularDependencyImport(variable, importingModule) {
@@ -11664,6 +11665,9 @@ class Chunk {
11664
11665
  if (this.manualChunkAlias) {
11665
11666
  return this.manualChunkAlias;
11666
11667
  }
11668
+ if (this.dynamicName) {
11669
+ return this.dynamicName;
11670
+ }
11667
11671
  if (this.fileName) {
11668
11672
  return getAliasName(this.fileName);
11669
11673
  }
@@ -11913,6 +11917,9 @@ class Chunk {
11913
11917
  }
11914
11918
  }
11915
11919
  }
11920
+ function getChunkNameFromModule(module) {
11921
+ return module.chunkName || getAliasName(module.id);
11922
+ }
11916
11923
 
11917
11924
  const concatSep = (out, next) => (next ? `${out}\n${next}` : out);
11918
11925
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.45.1",
3
+ "version": "2.45.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",