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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
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
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
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 v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
3
+ Rollup.js v4.14.1
4
+ Sun, 07 Apr 2024 07:35:08 GMT - commit 0b665c31833525c923c0fc20f43ebfca748c6670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7