rollup 3.7.0 → 3.7.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/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.7.0
6
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
5
+ Rollup.js v3.7.1
6
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { promises } from 'node:fs';
16
16
  import { EventEmitter } from 'node:events';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version$1 = "3.7.0";
19
+ var version$1 = "3.7.1";
20
20
 
21
21
  var charToInteger = {};
22
22
  var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -2274,12 +2274,13 @@ function errorInvalidFormatForTopLevelAwait(id, format) {
2274
2274
  };
2275
2275
  }
2276
2276
  function errorMissingExport(binding, importingModule, exporter) {
2277
+ const isJson = extname(exporter) === '.json';
2277
2278
  return {
2278
2279
  binding,
2279
2280
  code: MISSING_EXPORT,
2280
2281
  exporter,
2281
2282
  id: importingModule,
2282
- message: `"${binding}" is not exported by "${relativeId(exporter)}", imported by "${relativeId(importingModule)}".`,
2283
+ message: `"${binding}" is not exported by "${relativeId(exporter)}", imported by "${relativeId(importingModule)}".${isJson ? ' (Note that you need @rollup/plugin-json to import JSON files)' : ''}`,
2283
2284
  url: `https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module`
2284
2285
  };
2285
2286
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version$1 = "3.7.0";
34
+ var version$1 = "3.7.1";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -95,6 +95,19 @@ function locate(source, search, options) {
95
95
  return getLocator$1(source, options)(search, options && options.startIndex);
96
96
  }
97
97
 
98
+ const ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
99
+ const RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
100
+ function isAbsolute(path) {
101
+ return ABSOLUTE_PATH_REGEX.test(path);
102
+ }
103
+ function isRelative(path) {
104
+ return RELATIVE_PATH_REGEX.test(path);
105
+ }
106
+ const BACKSLASH_REGEX = /\\/g;
107
+ function normalize(path) {
108
+ return path.replace(BACKSLASH_REGEX, '/');
109
+ }
110
+
98
111
  function spaces(index) {
99
112
  let result = '';
100
113
  while (index--)
@@ -163,19 +176,6 @@ function relative(from, to) {
163
176
  return toParts.join('/');
164
177
  }
165
178
 
166
- const ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
167
- const RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
168
- function isAbsolute(path) {
169
- return ABSOLUTE_PATH_REGEX.test(path);
170
- }
171
- function isRelative(path) {
172
- return RELATIVE_PATH_REGEX.test(path);
173
- }
174
- const BACKSLASH_REGEX = /\\/g;
175
- function normalize(path) {
176
- return path.replace(BACKSLASH_REGEX, '/');
177
- }
178
-
179
179
  function getAliasName(id) {
180
180
  const base = node_path.basename(id);
181
181
  return base.slice(0, Math.max(0, base.length - node_path.extname(id).length));
@@ -535,12 +535,13 @@ function errorMissingConfig() {
535
535
  };
536
536
  }
537
537
  function errorMissingExport(binding, importingModule, exporter) {
538
+ const isJson = node_path.extname(exporter) === '.json';
538
539
  return {
539
540
  binding,
540
541
  code: MISSING_EXPORT,
541
542
  exporter,
542
543
  id: importingModule,
543
- message: `"${binding}" is not exported by "${relativeId(exporter)}", imported by "${relativeId(importingModule)}".`,
544
+ message: `"${binding}" is not exported by "${relativeId(exporter)}", imported by "${relativeId(importingModule)}".${isJson ? ' (Note that you need @rollup/plugin-json to import JSON files)' : ''}`,
544
545
  url: `https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module`
545
546
  };
546
547
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.0
4
- Thu, 08 Dec 2022 05:38:14 GMT - commit e83d53900e7ef2b71c12762a7fe7c91ef715a289
3
+ Rollup.js v3.7.1
4
+ Fri, 09 Dec 2022 19:58:22 GMT - commit cc54a2439bb274d91c74cc74a70e4c25e3dbb206
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",