rollup 0.67.0 → 0.67.4

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,22 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 0.67.4
4
+ *2018-12-03*
5
+ * Fix an issue with long lines in sourcemaps ([#2571](https://github.com/rollup/rollup/pull/2571))
6
+
7
+ ## 0.67.3
8
+ *2018-11-17*
9
+ * Show proper error when using `inlineDynamicImports` with `experimentalPreserveModules` ([#2560](https://github.com/rollup/rollup/pull/2560))
10
+ * Properly include ESM browser build in package ([#2552](https://github.com/rollup/rollup/pull/2552))
11
+
12
+ ## 0.67.2
13
+ *2018-11-17*
14
+ * Prevent crash when not returning sourcemaps from `renderChunk` ([#2558](https://github.com/rollup/rollup/pull/2558))
15
+
16
+ ## 0.67.1
17
+ *2018-11-11*
18
+ * Deconflict CLI entry points with same name but on different paths if no explicit naming is used ([#2548](https://github.com/rollup/rollup/pull/2548))
19
+
3
20
  ## 0.67.0
4
21
  *2018-11-04*
5
22
  * add `sourcemapExcludeSources` option to exclude the source content from sourcemaps ([#2531](https://github.com/rollup/rollup/pull/2531))
package/bin/rollup CHANGED
@@ -251,7 +251,7 @@ function isNumber (x) {
251
251
  return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
252
252
  }
253
253
 
254
- var version = "0.67.0";
254
+ var version = "0.67.4";
255
255
 
256
256
  /*! *****************************************************************************
257
257
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1878,28 +1878,25 @@ function runRollup(command) {
1878
1878
  }
1879
1879
  }
1880
1880
  if (command.dir) {
1881
- if (command._.length && !command._.some(function (input) { return input.indexOf('=') !== -1; })) {
1882
- command.input = command._;
1881
+ if (command._.length) {
1882
+ if (command._.some(function (input) { return input.indexOf('=') !== -1; })) {
1883
+ command.input = {};
1884
+ command._.forEach(function (input) {
1885
+ var equalsIndex = input.indexOf('=');
1886
+ var value = input.substr(equalsIndex + 1);
1887
+ var key = input.substr(0, equalsIndex);
1888
+ if (!key)
1889
+ key = getAliasName(input);
1890
+ command.input[key] = value;
1891
+ });
1892
+ }
1893
+ else {
1894
+ command.input = command._;
1895
+ }
1883
1896
  }
1884
- else if (command._.length ||
1885
- Array.isArray(command.input) ||
1886
- typeof command.input === 'string') {
1887
- var input = void 0;
1888
- if (command._.length)
1889
- input = command._;
1890
- else
1891
- input = typeof command.input === 'string' ? [command.input] : command.input;
1892
- command.input = {};
1893
- input.forEach(function (input) {
1894
- var equalsIndex = input.indexOf('=');
1895
- var value = input.substr(equalsIndex + 1);
1896
- var key = input.substr(0, equalsIndex);
1897
- if (!key)
1898
- key = getAliasName(input);
1899
- command.input[key] = value;
1900
- });
1897
+ else if (typeof command.input === 'string') {
1898
+ command.input = [command.input];
1901
1899
  }
1902
- command._ = [];
1903
1900
  }
1904
1901
  else if (command._.length === 1) {
1905
1902
  command.input = command._[0];