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/CHANGELOG.md +9 -0
- package/dist/bin/rollup +2 -2
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +12 -5
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +12 -5
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/es/rollup.js
CHANGED
package/dist/es/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.45.
|
|
4
|
-
|
|
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.
|
|
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.
|
|
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 ||
|
|
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);
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED