rollup 4.14.0 → 4.14.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/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 +150 -147
- package/dist/es/shared/parseAst.js +113 -98
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/native.js +29 -30
- 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 +116 -97
- package/dist/shared/rollup.js +203 -200
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +27 -27
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/native.js
CHANGED
|
@@ -35,36 +35,6 @@ const msvcLinkFilenameByArch = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
const packageBase = getPackageBase();
|
|
38
|
-
|
|
39
|
-
if (!packageBase) {
|
|
40
|
-
throw new Error(
|
|
41
|
-
`Your current platform "${platform}" and architecture "${arch}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
|
|
42
|
-
|
|
43
|
-
The following platform-architecture combinations are supported:
|
|
44
|
-
${Object.entries(bindingsByPlatformAndArch)
|
|
45
|
-
.flatMap(([platformName, architectures]) =>
|
|
46
|
-
Object.entries(architectures).flatMap(([architectureName, { musl }]) => {
|
|
47
|
-
const name = `${platformName}-${architectureName}`;
|
|
48
|
-
return musl ? [name, `${name} (musl)`] : [name];
|
|
49
|
-
})
|
|
50
|
-
)
|
|
51
|
-
.join('\n')}
|
|
52
|
-
|
|
53
|
-
If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.`
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function getPackageBase() {
|
|
58
|
-
const imported = bindingsByPlatformAndArch[platform]?.[arch];
|
|
59
|
-
if (!imported) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
if ('musl' in imported && isMusl()) {
|
|
63
|
-
return imported.musl;
|
|
64
|
-
}
|
|
65
|
-
return imported.base;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
38
|
const localName = `./rollup.${packageBase}.node`;
|
|
69
39
|
const requireWithFriendlyError = id => {
|
|
70
40
|
try {
|
|
@@ -99,6 +69,35 @@ const { parse, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requi
|
|
|
99
69
|
existsSync(join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
100
70
|
);
|
|
101
71
|
|
|
72
|
+
function getPackageBase() {
|
|
73
|
+
const imported = bindingsByPlatformAndArch[platform]?.[arch];
|
|
74
|
+
if (!imported) {
|
|
75
|
+
throwUnsupportedError(false);
|
|
76
|
+
}
|
|
77
|
+
if ('musl' in imported && isMusl()) {
|
|
78
|
+
return imported.musl || throwUnsupportedError(true);
|
|
79
|
+
}
|
|
80
|
+
return imported.base;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function throwUnsupportedError(isMusl) {
|
|
84
|
+
throw new Error(
|
|
85
|
+
`Your current platform "${platform}${isMusl ? ' (musl)' : ''}" and architecture "${arch}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
|
|
86
|
+
|
|
87
|
+
The following platform-architecture combinations are supported:
|
|
88
|
+
${Object.entries(bindingsByPlatformAndArch)
|
|
89
|
+
.flatMap(([platformName, architectures]) =>
|
|
90
|
+
Object.entries(architectures).flatMap(([architectureName, { musl }]) => {
|
|
91
|
+
const name = `${platformName}-${architectureName}`;
|
|
92
|
+
return musl ? [name, `${name} (musl)`] : [name];
|
|
93
|
+
})
|
|
94
|
+
)
|
|
95
|
+
.join('\n')}
|
|
96
|
+
|
|
97
|
+
If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.`
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
102
101
|
module.exports.parse = parse;
|
|
103
102
|
module.exports.parseAsync = parseAsync;
|
|
104
103
|
module.exports.xxhashBase64Url = xxhashBase64Url;
|
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED