rollup 2.53.3 → 2.56.0
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 +51 -0
- package/dist/bin/rollup +15 -8
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +183 -155
- package/dist/es/shared/watch.js +10 -6
- 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 +7 -5
- package/dist/shared/loadConfigFile.js +8 -4
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +183 -155
- package/dist/shared/watch-cli.js +3 -3
- package/dist/shared/watch.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 2.56.0
|
|
4
|
+
*2021-08-05*
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
* Create more efficient code for SystemJS exports (#4199)
|
|
8
|
+
* Extend `maxParallelFileReads` option to also throttle plugin load hooks (#4200)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
* Return correct value for postfix update expressions of exported variables (#4194)
|
|
12
|
+
|
|
13
|
+
### Pull Requests
|
|
14
|
+
* [#4199](https://github.com/rollup/rollup/pull/4199): Refine SystemJS export rendering (@lukastaegert)
|
|
15
|
+
* [#4200](https://github.com/rollup/rollup/pull/4200): Restrict parallel execution of load hook (@schummar)
|
|
16
|
+
|
|
17
|
+
## 2.55.1
|
|
18
|
+
*2021-07-29*
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
* Improve CLI warning message for unused external imports (#4194)
|
|
22
|
+
|
|
23
|
+
### Pull Requests
|
|
24
|
+
* [#4194](https://github.com/rollup/rollup/pull/4194): Align batch warning for UNUSED_EXTERNAL_IMPORT to individual warning (@benmccann)
|
|
25
|
+
|
|
26
|
+
## 2.55.0
|
|
27
|
+
*2021-07-28*
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
* Support default export live-bindings when generating ESM output (#4182)
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
* Always write `["default"]` as computed property when used as named export (#4182)
|
|
34
|
+
* Do not mask default export TDZ errors (#4182)
|
|
35
|
+
|
|
36
|
+
### Pull Requests
|
|
37
|
+
* [#4182](https://github.com/rollup/rollup/pull/4182): Use mutable bindings for default exports (@lukastaegert)
|
|
38
|
+
|
|
39
|
+
## 2.54.0
|
|
40
|
+
*2021-07-25*
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
* Extend UMD import.meta.url polyfill to support web workers (#4186)
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
* Resolve an issue where certain uses of classes could lead to an infinite recursion (#4189)
|
|
47
|
+
|
|
48
|
+
### Pull Requests
|
|
49
|
+
* [#4186](https://github.com/rollup/rollup/pull/4186): Fix UMD import.meta.url inside web workers (@ceifa)
|
|
50
|
+
* [#4188](https://github.com/rollup/rollup/pull/4188): Fix typo in renderHelpers.ts (@eltociear)
|
|
51
|
+
* [#4189](https://github.com/rollup/rollup/pull/4189): Move long path recursion prevention to MemberExpression (@lukastaegert)
|
|
52
|
+
* [#4190](https://github.com/rollup/rollup/pull/4190): Stop recommending node-builtins (@curran)
|
|
53
|
+
|
|
3
54
|
## 2.53.3
|
|
4
55
|
*2021-07-21*
|
|
5
56
|
|
package/dist/bin/rollup
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
@license
|
|
5
|
-
Rollup.js v2.
|
|
6
|
-
|
|
5
|
+
Rollup.js v2.56.0
|
|
6
|
+
Thu, 05 Aug 2021 05:18:15 GMT - commit ffd5cad3339c8d42bff3e9ae7c6c8ef12fced50a
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
https://github.com/rollup/rollup
|
|
@@ -1208,6 +1208,7 @@ yargsParser.detailed = function (args, opts) {
|
|
|
1208
1208
|
yargsParser.camelCase = camelCase;
|
|
1209
1209
|
yargsParser.decamelize = decamelize;
|
|
1210
1210
|
yargsParser.looksLikeNumber = looksLikeNumber;
|
|
1211
|
+
var argParser = yargsParser;
|
|
1211
1212
|
|
|
1212
1213
|
var parseMs = milliseconds => {
|
|
1213
1214
|
if (typeof milliseconds !== 'number') {
|
|
@@ -1352,6 +1353,8 @@ var prettyMs = (milliseconds, options = {}) => {
|
|
|
1352
1353
|
return options.colonNotation ? result.join('') : result.join(' ');
|
|
1353
1354
|
};
|
|
1354
1355
|
|
|
1356
|
+
var ms = prettyMs;
|
|
1357
|
+
|
|
1355
1358
|
let SOURCEMAPPING_URL = 'sourceMa';
|
|
1356
1359
|
SOURCEMAPPING_URL += 'ppingURL';
|
|
1357
1360
|
var SOURCEMAPPING_URL$1 = SOURCEMAPPING_URL;
|
|
@@ -1473,11 +1476,13 @@ var prettyBytes = (number, options) => {
|
|
|
1473
1476
|
return prefix + numberString + ' ' + unit;
|
|
1474
1477
|
};
|
|
1475
1478
|
|
|
1479
|
+
var prettyBytes$1 = prettyBytes;
|
|
1480
|
+
|
|
1476
1481
|
function printTimings(timings) {
|
|
1477
1482
|
Object.keys(timings).forEach(label => {
|
|
1478
1483
|
const appliedColor = label[0] === '#' ? (label[1] !== '#' ? loadConfigFile_js.underline : loadConfigFile_js.bold) : (text) => text;
|
|
1479
1484
|
const [time, memory, total] = timings[label];
|
|
1480
|
-
const row = `${label}: ${time.toFixed(0)}ms, ${prettyBytes(memory)} / ${prettyBytes(total)}`;
|
|
1485
|
+
const row = `${label}: ${time.toFixed(0)}ms, ${prettyBytes$1(memory)} / ${prettyBytes$1(total)}`;
|
|
1481
1486
|
console.info(appliedColor(row));
|
|
1482
1487
|
});
|
|
1483
1488
|
}
|
|
@@ -1534,7 +1539,7 @@ async function build(inputOptions, warnings, silent = false) {
|
|
|
1534
1539
|
await bundle.close();
|
|
1535
1540
|
if (!silent) {
|
|
1536
1541
|
warnings.flush();
|
|
1537
|
-
loadConfigFile_js.stderr(loadConfigFile_js.green(`created ${loadConfigFile_js.bold(files.join(', '))} in ${loadConfigFile_js.bold(
|
|
1542
|
+
loadConfigFile_js.stderr(loadConfigFile_js.green(`created ${loadConfigFile_js.bold(files.join(', '))} in ${loadConfigFile_js.bold(ms(Date.now() - start))}`));
|
|
1538
1543
|
if (bundle && bundle.getTimings) {
|
|
1539
1544
|
printTimings(bundle.getTimings());
|
|
1540
1545
|
}
|
|
@@ -1575,6 +1580,8 @@ requireRelative.resolve = function(requested, relativeTo) {
|
|
|
1575
1580
|
|
|
1576
1581
|
var requireRelative_1 = requireRelative;
|
|
1577
1582
|
|
|
1583
|
+
var relative = requireRelative_1;
|
|
1584
|
+
|
|
1578
1585
|
const DEFAULT_CONFIG_BASE = 'rollup.config';
|
|
1579
1586
|
function getConfigPath(commandConfig) {
|
|
1580
1587
|
const cwd = process.cwd();
|
|
@@ -1584,11 +1591,11 @@ function getConfigPath(commandConfig) {
|
|
|
1584
1591
|
if (commandConfig.slice(0, 5) === 'node:') {
|
|
1585
1592
|
const pkgName = commandConfig.slice(5);
|
|
1586
1593
|
try {
|
|
1587
|
-
return
|
|
1594
|
+
return relative.resolve(`rollup-config-${pkgName}`, cwd);
|
|
1588
1595
|
}
|
|
1589
1596
|
catch (err) {
|
|
1590
1597
|
try {
|
|
1591
|
-
return
|
|
1598
|
+
return relative.resolve(pkgName, cwd);
|
|
1592
1599
|
}
|
|
1593
1600
|
catch (err) {
|
|
1594
1601
|
if (err.code === 'MODULE_NOT_FOUND') {
|
|
@@ -1711,7 +1718,7 @@ async function getConfigs(command) {
|
|
|
1711
1718
|
return loadConfigFromCommand(command);
|
|
1712
1719
|
}
|
|
1713
1720
|
|
|
1714
|
-
const command =
|
|
1721
|
+
const command = argParser(process.argv.slice(2), {
|
|
1715
1722
|
alias: mergeOptions.commandAliases,
|
|
1716
1723
|
configuration: { 'camel-case-expansion': false }
|
|
1717
1724
|
});
|
|
@@ -1733,6 +1740,6 @@ else {
|
|
|
1733
1740
|
|
|
1734
1741
|
exports.getConfigPath = getConfigPath;
|
|
1735
1742
|
exports.loadConfigFromCommand = loadConfigFromCommand;
|
|
1736
|
-
exports.
|
|
1743
|
+
exports.ms = ms;
|
|
1737
1744
|
exports.printTimings = printTimings;
|
|
1738
1745
|
//# sourceMappingURL=rollup.map
|