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 +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +5 -4
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/rollup.js +18 -17
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/bin/rollup
CHANGED
package/dist/es/rollup.js
CHANGED
package/dist/es/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.7.
|
|
4
|
-
|
|
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.
|
|
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
|
}
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.7.
|
|
4
|
-
|
|
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.
|
|
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
|
}
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED