rollup 2.32.0 → 2.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.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.32.0
4
- Fri, 16 Oct 2020 18:58:25 GMT - commit 41fd96810749433cae2787f156a530c1ef04b9ef
3
+ Rollup.js v2.32.1
4
+ Wed, 21 Oct 2020 07:32:18 GMT - commit 51e727c99bfc67a6bc46087c63950cec2a7fe12f
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.32.0
4
- Fri, 16 Oct 2020 18:58:25 GMT - commit 41fd96810749433cae2787f156a530c1ef04b9ef
3
+ Rollup.js v2.32.1
4
+ Wed, 21 Oct 2020 07:32:18 GMT - commit 51e727c99bfc67a6bc46087c63950cec2a7fe12f
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.32.0
4
- Fri, 16 Oct 2020 18:58:25 GMT - commit 41fd96810749433cae2787f156a530c1ef04b9ef
3
+ Rollup.js v2.32.1
4
+ Wed, 21 Oct 2020 07:32:18 GMT - commit 51e727c99bfc67a6bc46087c63950cec2a7fe12f
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -212,6 +212,7 @@ const deferredHandlers = {
212
212
  showTruncatedWarnings(warnings);
213
213
  },
214
214
  PLUGIN_WARNING(warnings) {
215
+ var _a;
215
216
  const nestedByPlugin = nest(warnings, 'plugin');
216
217
  for (const { key: plugin, items } of nestedByPlugin) {
217
218
  const nestedByMessage = nest(items, 'message');
@@ -221,8 +222,9 @@ const deferredHandlers = {
221
222
  for (const warning of items) {
222
223
  if (warning.url && warning.url !== lastUrl)
223
224
  info((lastUrl = warning.url));
224
- if (warning.id) {
225
- let loc = rollup.relativeId(warning.id);
225
+ const id = warning.id || ((_a = warning.loc) === null || _a === void 0 ? void 0 : _a.file);
226
+ if (id) {
227
+ let loc = rollup.relativeId(id);
226
228
  if (warning.loc) {
227
229
  loc += `: (${warning.loc.line}:${warning.loc.column})`;
228
230
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.32.0
4
- Fri, 16 Oct 2020 18:58:25 GMT - commit 41fd96810749433cae2787f156a530c1ef04b9ef
3
+ Rollup.js v2.32.1
4
+ Wed, 21 Oct 2020 07:32:18 GMT - commit 51e727c99bfc67a6bc46087c63950cec2a7fe12f
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.32.0
4
- Fri, 16 Oct 2020 18:58:25 GMT - commit 41fd96810749433cae2787f156a530c1ef04b9ef
3
+ Rollup.js v2.32.1
4
+ Wed, 21 Oct 2020 07:32:18 GMT - commit 51e727c99bfc67a6bc46087c63950cec2a7fe12f
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -19,7 +19,7 @@ function _interopNamespaceDefaultOnly(e) {
19
19
  return {__proto__: null, 'default': e};
20
20
  }
21
21
 
22
- var version = "2.32.0";
22
+ var version = "2.32.1";
23
23
 
24
24
  function ensureArray(items) {
25
25
  if (Array.isArray(items)) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.32.0
4
- Fri, 16 Oct 2020 18:58:25 GMT - commit 41fd96810749433cae2787f156a530c1ef04b9ef
3
+ Rollup.js v2.32.1
4
+ Wed, 21 Oct 2020 07:32:18 GMT - commit 51e727c99bfc67a6bc46087c63950cec2a7fe12f
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.32.0
4
- Fri, 16 Oct 2020 18:58:25 GMT - commit 41fd96810749433cae2787f156a530c1ef04b9ef
3
+ Rollup.js v2.32.1
4
+ Wed, 21 Oct 2020 07:32:18 GMT - commit 51e727c99bfc67a6bc46087c63950cec2a7fe12f
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.32.0",
3
+ "version": "2.32.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",