rollup 4.13.1-1 → 4.13.2
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/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +36 -3
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/native.js +2 -0
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +36 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +18 -16
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.13.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.13.2
|
|
5
|
+
Thu, 28 Mar 2024 14:13:03 GMT - commit b379a592234416a2084918b0eea4c81865a1579f
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.13.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.13.2
|
|
4
|
+
Thu, 28 Mar 2024 14:13:03 GMT - commit b379a592234416a2084918b0eea4c81865a1579f
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
|
|
|
16
16
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
17
|
import * as tty from 'tty';
|
|
18
18
|
|
|
19
|
-
var version = "4.13.
|
|
19
|
+
var version = "4.13.2";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -2025,6 +2025,20 @@ const EMPTY_SET = Object.freeze(new (class extends Set {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
})());
|
|
2027
2027
|
|
|
2028
|
+
function cacheObjectGetters(object, getterProperties) {
|
|
2029
|
+
for (const property of getterProperties) {
|
|
2030
|
+
const propertyGetter = Object.getOwnPropertyDescriptor(object, property).get;
|
|
2031
|
+
Object.defineProperty(object, property, {
|
|
2032
|
+
get() {
|
|
2033
|
+
const value = propertyGetter.call(object);
|
|
2034
|
+
// This replaces the getter with a fixed value for subsequent calls
|
|
2035
|
+
Object.defineProperty(object, property, { value });
|
|
2036
|
+
return value;
|
|
2037
|
+
}
|
|
2038
|
+
});
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2028
2042
|
const RESERVED_NAMES = new Set([
|
|
2029
2043
|
'await',
|
|
2030
2044
|
'break',
|
|
@@ -2156,6 +2170,9 @@ class ExternalModule {
|
|
|
2156
2170
|
syntheticNamedExports: false
|
|
2157
2171
|
};
|
|
2158
2172
|
}
|
|
2173
|
+
cacheInfoGetters() {
|
|
2174
|
+
cacheObjectGetters(this.info, ['dynamicImporters', 'importers']);
|
|
2175
|
+
}
|
|
2159
2176
|
getVariableForExportName(name) {
|
|
2160
2177
|
const declaration = this.declarations.get(name);
|
|
2161
2178
|
if (declaration)
|
|
@@ -13649,6 +13666,21 @@ class Module {
|
|
|
13649
13666
|
bindReferences() {
|
|
13650
13667
|
this.ast.bind();
|
|
13651
13668
|
}
|
|
13669
|
+
cacheInfoGetters() {
|
|
13670
|
+
cacheObjectGetters(this.info, [
|
|
13671
|
+
'dynamicallyImportedIdResolutions',
|
|
13672
|
+
'dynamicallyImportedIds',
|
|
13673
|
+
'dynamicImporters',
|
|
13674
|
+
'exportedBindings',
|
|
13675
|
+
'exports',
|
|
13676
|
+
'hasDefaultExport',
|
|
13677
|
+
'implicitlyLoadedAfterOneOf',
|
|
13678
|
+
'implicitlyLoadedBefore',
|
|
13679
|
+
'importedIdResolutions',
|
|
13680
|
+
'importedIds',
|
|
13681
|
+
'importers'
|
|
13682
|
+
]);
|
|
13683
|
+
}
|
|
13652
13684
|
error(properties, pos) {
|
|
13653
13685
|
pos !== undefined && this.addLocationToLogProps(properties, pos);
|
|
13654
13686
|
return error(properties);
|
|
@@ -19785,6 +19817,7 @@ class Graph {
|
|
|
19785
19817
|
throw new Error('You must supply options.input to rollup');
|
|
19786
19818
|
}
|
|
19787
19819
|
for (const module of this.modulesById.values()) {
|
|
19820
|
+
module.cacheInfoGetters();
|
|
19788
19821
|
if (module instanceof Module) {
|
|
19789
19822
|
this.modules.push(module);
|
|
19790
19823
|
}
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/native.js
CHANGED
|
@@ -16,7 +16,9 @@ const bindingsByPlatformAndArch = {
|
|
|
16
16
|
linux: {
|
|
17
17
|
arm: { base: 'linux-arm-gnueabihf', musl: null },
|
|
18
18
|
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
|
|
19
|
+
ppc64le: { base: 'linux-powerpc64le-gnu', musl: null },
|
|
19
20
|
riscv64: { base: 'linux-riscv64-gnu', musl: null },
|
|
21
|
+
s390x: { base: 'linux-s390x-gnu', musl: null },
|
|
20
22
|
x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
|
|
21
23
|
},
|
|
22
24
|
win32: {
|
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.13.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.13.2
|
|
4
|
+
Thu, 28 Mar 2024 14:13:03 GMT - commit b379a592234416a2084918b0eea4c81865a1579f
|
|
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 = "4.13.
|
|
34
|
+
var version = "4.13.2";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -3467,6 +3467,20 @@ class ExternalVariable extends Variable {
|
|
|
3467
3467
|
}
|
|
3468
3468
|
}
|
|
3469
3469
|
|
|
3470
|
+
function cacheObjectGetters(object, getterProperties) {
|
|
3471
|
+
for (const property of getterProperties) {
|
|
3472
|
+
const propertyGetter = Object.getOwnPropertyDescriptor(object, property).get;
|
|
3473
|
+
Object.defineProperty(object, property, {
|
|
3474
|
+
get() {
|
|
3475
|
+
const value = propertyGetter.call(object);
|
|
3476
|
+
// This replaces the getter with a fixed value for subsequent calls
|
|
3477
|
+
Object.defineProperty(object, property, { value });
|
|
3478
|
+
return value;
|
|
3479
|
+
}
|
|
3480
|
+
});
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3470
3484
|
const RESERVED_NAMES = new Set([
|
|
3471
3485
|
'await',
|
|
3472
3486
|
'break',
|
|
@@ -3598,6 +3612,9 @@ class ExternalModule {
|
|
|
3598
3612
|
syntheticNamedExports: false
|
|
3599
3613
|
};
|
|
3600
3614
|
}
|
|
3615
|
+
cacheInfoGetters() {
|
|
3616
|
+
cacheObjectGetters(this.info, ['dynamicImporters', 'importers']);
|
|
3617
|
+
}
|
|
3601
3618
|
getVariableForExportName(name) {
|
|
3602
3619
|
const declaration = this.declarations.get(name);
|
|
3603
3620
|
if (declaration)
|
|
@@ -15070,6 +15087,21 @@ class Module {
|
|
|
15070
15087
|
bindReferences() {
|
|
15071
15088
|
this.ast.bind();
|
|
15072
15089
|
}
|
|
15090
|
+
cacheInfoGetters() {
|
|
15091
|
+
cacheObjectGetters(this.info, [
|
|
15092
|
+
'dynamicallyImportedIdResolutions',
|
|
15093
|
+
'dynamicallyImportedIds',
|
|
15094
|
+
'dynamicImporters',
|
|
15095
|
+
'exportedBindings',
|
|
15096
|
+
'exports',
|
|
15097
|
+
'hasDefaultExport',
|
|
15098
|
+
'implicitlyLoadedAfterOneOf',
|
|
15099
|
+
'implicitlyLoadedBefore',
|
|
15100
|
+
'importedIdResolutions',
|
|
15101
|
+
'importedIds',
|
|
15102
|
+
'importers'
|
|
15103
|
+
]);
|
|
15104
|
+
}
|
|
15073
15105
|
error(properties, pos) {
|
|
15074
15106
|
pos !== undefined && this.addLocationToLogProps(properties, pos);
|
|
15075
15107
|
return parseAst_js.error(properties);
|
|
@@ -20210,6 +20242,7 @@ class Graph {
|
|
|
20210
20242
|
throw new Error('You must supply options.input to rollup');
|
|
20211
20243
|
}
|
|
20212
20244
|
for (const module of this.modulesById.values()) {
|
|
20245
|
+
module.cacheInfoGetters();
|
|
20213
20246
|
if (module instanceof Module) {
|
|
20214
20247
|
this.modules.push(module);
|
|
20215
20248
|
}
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.2",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -25,9 +25,10 @@
|
|
|
25
25
|
"armv7-unknown-linux-gnueabihf",
|
|
26
26
|
"i686-pc-windows-msvc",
|
|
27
27
|
"riscv64gc-unknown-linux-gnu",
|
|
28
|
+
"powerpc64le-unknown-linux-gnu",
|
|
29
|
+
"s390x-unknown-linux-gnu",
|
|
28
30
|
"x86_64-apple-darwin",
|
|
29
31
|
"x86_64-pc-windows-msvc",
|
|
30
|
-
"x86_64-pc-windows-gnu",
|
|
31
32
|
"x86_64-unknown-linux-gnu",
|
|
32
33
|
"x86_64-unknown-linux-musl"
|
|
33
34
|
]
|
|
@@ -102,20 +103,21 @@
|
|
|
102
103
|
"homepage": "https://rollupjs.org/",
|
|
103
104
|
"optionalDependencies": {
|
|
104
105
|
"fsevents": "~2.3.2",
|
|
105
|
-
"@rollup/rollup-darwin-arm64": "4.13.
|
|
106
|
-
"@rollup/rollup-android-arm64": "4.13.
|
|
107
|
-
"@rollup/rollup-win32-arm64-msvc": "4.13.
|
|
108
|
-
"@rollup/rollup-linux-arm64-gnu": "4.13.
|
|
109
|
-
"@rollup/rollup-linux-arm64-musl": "4.13.
|
|
110
|
-
"@rollup/rollup-android-arm-eabi": "4.13.
|
|
111
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.13.
|
|
112
|
-
"@rollup/rollup-win32-ia32-msvc": "4.13.
|
|
113
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.13.
|
|
114
|
-
"@rollup/rollup-
|
|
115
|
-
"@rollup/rollup-
|
|
116
|
-
"@rollup/rollup-
|
|
117
|
-
"@rollup/rollup-
|
|
118
|
-
"@rollup/rollup-linux-x64-
|
|
106
|
+
"@rollup/rollup-darwin-arm64": "4.13.2",
|
|
107
|
+
"@rollup/rollup-android-arm64": "4.13.2",
|
|
108
|
+
"@rollup/rollup-win32-arm64-msvc": "4.13.2",
|
|
109
|
+
"@rollup/rollup-linux-arm64-gnu": "4.13.2",
|
|
110
|
+
"@rollup/rollup-linux-arm64-musl": "4.13.2",
|
|
111
|
+
"@rollup/rollup-android-arm-eabi": "4.13.2",
|
|
112
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.13.2",
|
|
113
|
+
"@rollup/rollup-win32-ia32-msvc": "4.13.2",
|
|
114
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.13.2",
|
|
115
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.13.2",
|
|
116
|
+
"@rollup/rollup-linux-s390x-gnu": "4.13.2",
|
|
117
|
+
"@rollup/rollup-darwin-x64": "4.13.2",
|
|
118
|
+
"@rollup/rollup-win32-x64-msvc": "4.13.2",
|
|
119
|
+
"@rollup/rollup-linux-x64-gnu": "4.13.2",
|
|
120
|
+
"@rollup/rollup-linux-x64-musl": "4.13.2"
|
|
119
121
|
},
|
|
120
122
|
"dependencies": {
|
|
121
123
|
"@types/estree": "1.0.5"
|