rollup 2.54.0 → 2.56.1

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 CHANGED
@@ -1,5 +1,50 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.56.1
4
+ *2021-08-08*
5
+
6
+ ### Bug Fixes
7
+ * Fix rendering of SystemJS export declarations initialized with a simplifiable expression (#4202)
8
+
9
+ ### Pull Requests
10
+ * [#4202](https://github.com/rollup/rollup/pull/4202): Fix incorrect rendering of export declarations in SystemJS (@lukastaegert)
11
+
12
+ ## 2.56.0
13
+ *2021-08-05*
14
+
15
+ ### Features
16
+ * Create more efficient code for SystemJS exports (#4199)
17
+ * Extend `maxParallelFileReads` option to also throttle plugin load hooks (#4200)
18
+
19
+ ### Bug Fixes
20
+ * Return correct value for postfix update expressions of exported variables (#4194)
21
+
22
+ ### Pull Requests
23
+ * [#4199](https://github.com/rollup/rollup/pull/4199): Refine SystemJS export rendering (@lukastaegert)
24
+ * [#4200](https://github.com/rollup/rollup/pull/4200): Restrict parallel execution of load hook (@schummar)
25
+
26
+ ## 2.55.1
27
+ *2021-07-29*
28
+
29
+ ### Bug Fixes
30
+ * Improve CLI warning message for unused external imports (#4194)
31
+
32
+ ### Pull Requests
33
+ * [#4194](https://github.com/rollup/rollup/pull/4194): Align batch warning for UNUSED_EXTERNAL_IMPORT to individual warning (@benmccann)
34
+
35
+ ## 2.55.0
36
+ *2021-07-28*
37
+
38
+ ### Features
39
+ * Support default export live-bindings when generating ESM output (#4182)
40
+
41
+ ### Bug Fixes
42
+ * Always write `["default"]` as computed property when used as named export (#4182)
43
+ * Do not mask default export TDZ errors (#4182)
44
+
45
+ ### Pull Requests
46
+ * [#4182](https://github.com/rollup/rollup/pull/4182): Use mutable bindings for default exports (@lukastaegert)
47
+
3
48
  ## 2.54.0
4
49
  *2021-07-25*
5
50
 
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.54.0
6
- Sun, 25 Jul 2021 05:15:03 GMT - commit f90e1a2d9a1822b70ffb532a25404e2f45f17f5b
5
+ Rollup.js v2.56.1
6
+ Sun, 08 Aug 2021 11:58:39 GMT - commit 2a097a809d7976d0684370fb14b61b3c2fa86bca
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(prettyMs(Date.now() - start))}`));
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 requireRelative_1.resolve(`rollup-config-${pkgName}`, cwd);
1594
+ return relative.resolve(`rollup-config-${pkgName}`, cwd);
1588
1595
  }
1589
1596
  catch (err) {
1590
1597
  try {
1591
- return requireRelative_1.resolve(pkgName, cwd);
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 = yargsParser(process.argv.slice(2), {
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.prettyMs = prettyMs;
1743
+ exports.ms = ms;
1737
1744
  exports.printTimings = printTimings;
1738
1745
  //# sourceMappingURL=rollup.map