rollup 1.32.0 → 1.32.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/dist/rollup.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v1.32.0
4
- Fri, 28 Feb 2020 05:47:17 GMT - commit 9d68d8e83fbd57fece136493ce3b6f24b7d7b7b1
3
+ Rollup.js v1.32.1
4
+ Fri, 06 Mar 2020 09:32:39 GMT - commit f458cbf6cb8cfcc1678593d8dc595e4b8757eb6d
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -50,7 +50,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
50
50
  });
51
51
  }
52
52
 
53
- var version = "1.32.0";
53
+ var version = "1.32.1";
54
54
 
55
55
  var charToInteger = {};
56
56
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -5031,7 +5031,7 @@ function getInteropBlock(dependencies, options, varOrConst) {
5031
5031
  return (`${varOrConst} ${name}__default${_}=${_}'default'${_}in ${name}${_}?` +
5032
5032
  `${_}${name}['default']${_}:${_}${name};`);
5033
5033
  }
5034
- return (`${name}${_}=${_}${name}${_}&&${_}${name}.hasOwnProperty('default')${_}?` +
5034
+ return (`${name}${_}=${_}${name}${_}&&${_}Object.prototype.hasOwnProperty.call(${name},${_}'default')${_}?` +
5035
5035
  `${_}${name}['default']${_}:${_}${name};`);
5036
5036
  })
5037
5037
  .filter(Boolean)
@@ -5684,6 +5684,7 @@ function iife(magicString, { dependencies, exports, hasExports, indentString: t,
5684
5684
  const args = external.map(m => m.name);
5685
5685
  if (hasExports && !name) {
5686
5686
  warn({
5687
+ code: 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT',
5687
5688
  message: `If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.`
5688
5689
  });
5689
5690
  }
@@ -7410,6 +7411,9 @@ class IfStatement extends NodeBase {
7410
7411
  }
7411
7412
  if (this.alternate !== null) {
7412
7413
  if (this.alternate.included) {
7414
+ if (code.original.charCodeAt(this.alternate.start - 1) === 101 /* e */) {
7415
+ code.prependLeft(this.alternate.start, ' ');
7416
+ }
7413
7417
  this.alternate.render(code, options);
7414
7418
  }
7415
7419
  else {
@@ -9719,7 +9723,7 @@ function tryParse(module, Parser, acornOptions) {
9719
9723
  function handleMissingExport(exportName, importingModule, importedModule, importerStart) {
9720
9724
  return importingModule.error({
9721
9725
  code: 'MISSING_EXPORT',
9722
- message: `'${exportName}' is not exported by ${relativeId(importedModule)}`,
9726
+ message: `'${exportName}' is not exported by ${relativeId(importedModule)}, imported by ${relativeId(importingModule.id)}`,
9723
9727
  url: `https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module`
9724
9728
  }, importerStart);
9725
9729
  }
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v1.32.0
4
- Fri, 28 Feb 2020 05:47:17 GMT - commit 9d68d8e83fbd57fece136493ce3b6f24b7d7b7b1
3
+ Rollup.js v1.32.1
4
+ Fri, 06 Mar 2020 09:32:39 GMT - commit f458cbf6cb8cfcc1678593d8dc595e4b8757eb6d
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v1.32.0
4
- Fri, 28 Feb 2020 05:46:43 GMT - commit 9d68d8e83fbd57fece136493ce3b6f24b7d7b7b1
3
+ Rollup.js v1.32.1
4
+ Fri, 06 Mar 2020 09:32:05 GMT - commit f458cbf6cb8cfcc1678593d8dc595e4b8757eb6d
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -46,7 +46,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
46
46
  });
47
47
  }
48
48
 
49
- var version = "1.32.0";
49
+ var version = "1.32.1";
50
50
 
51
51
  function createCommonjsModule(fn, module) {
52
52
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v1.32.0
4
- Fri, 28 Feb 2020 05:47:17 GMT - commit 9d68d8e83fbd57fece136493ce3b6f24b7d7b7b1
3
+ Rollup.js v1.32.1
4
+ Fri, 06 Mar 2020 09:32:39 GMT - commit f458cbf6cb8cfcc1678593d8dc595e4b8757eb6d
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -51,7 +51,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
51
51
  });
52
52
  }
53
53
 
54
- var version = "1.32.0";
54
+ var version = "1.32.1";
55
55
 
56
56
  var charToInteger = {};
57
57
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -5032,7 +5032,7 @@ function getInteropBlock(dependencies, options, varOrConst) {
5032
5032
  return (`${varOrConst} ${name}__default${_}=${_}'default'${_}in ${name}${_}?` +
5033
5033
  `${_}${name}['default']${_}:${_}${name};`);
5034
5034
  }
5035
- return (`${name}${_}=${_}${name}${_}&&${_}${name}.hasOwnProperty('default')${_}?` +
5035
+ return (`${name}${_}=${_}${name}${_}&&${_}Object.prototype.hasOwnProperty.call(${name},${_}'default')${_}?` +
5036
5036
  `${_}${name}['default']${_}:${_}${name};`);
5037
5037
  })
5038
5038
  .filter(Boolean)
@@ -5685,6 +5685,7 @@ function iife(magicString, { dependencies, exports, hasExports, indentString: t,
5685
5685
  const args = external.map(m => m.name);
5686
5686
  if (hasExports && !name) {
5687
5687
  warn({
5688
+ code: 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT',
5688
5689
  message: `If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.`
5689
5690
  });
5690
5691
  }
@@ -7411,6 +7412,9 @@ class IfStatement extends NodeBase {
7411
7412
  }
7412
7413
  if (this.alternate !== null) {
7413
7414
  if (this.alternate.included) {
7415
+ if (code.original.charCodeAt(this.alternate.start - 1) === 101 /* e */) {
7416
+ code.prependLeft(this.alternate.start, ' ');
7417
+ }
7414
7418
  this.alternate.render(code, options);
7415
7419
  }
7416
7420
  else {
@@ -9720,7 +9724,7 @@ function tryParse(module, Parser, acornOptions) {
9720
9724
  function handleMissingExport(exportName, importingModule, importedModule, importerStart) {
9721
9725
  return importingModule.error({
9722
9726
  code: 'MISSING_EXPORT',
9723
- message: `'${exportName}' is not exported by ${relativeId(importedModule)}`,
9727
+ message: `'${exportName}' is not exported by ${relativeId(importedModule)}, imported by ${relativeId(importingModule.id)}`,
9724
9728
  url: `https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module`
9725
9729
  }, importerStart);
9726
9730
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "1.32.0",
3
+ "version": "1.32.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/rollup.es.js",