rollup 4.48.1 → 4.50.0

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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.48.1
5
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
4
+ Rollup.js v4.50.0
5
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
27
27
  return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
28
28
  }
29
29
 
30
- var version = "4.48.1";
30
+ var version = "4.50.0";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/native.js CHANGED
@@ -26,6 +26,9 @@ const bindingsByPlatformAndArch = {
26
26
  s390x: { base: 'linux-s390x-gnu', musl: null },
27
27
  x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
28
28
  },
29
+ openharmony: {
30
+ arm64: { base: 'openharmony-arm64' }
31
+ },
29
32
  win32: {
30
33
  arm64: { base: 'win32-arm64-msvc' },
31
34
  ia32: { base: 'win32-ia32-msvc' },
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
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.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -496,13 +496,25 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
496
496
  const { bundleConfigAsCjs, configPlugin, configImportAttributesKey, silent } = commandOptions;
497
497
  const warnings = batchWarnings(commandOptions);
498
498
  const inputOptions = {
499
- external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5) === '.json',
499
+ // Do *not* specify external callback here - instead, perform the externality check it via fallback-plugin just below this comment.
500
+ // This allows config plugin to first decide whether some import is external or not, and only then trigger the check in fallback-plugin.
501
+ // Since the check is ultra-simple during this stage of transforming the config file itself, it should be fallback instead of primary check.
502
+ // That way, e.g. importing workspace packages will work as expected - the workspace package will be bundled.
500
503
  input: fileName,
501
504
  onwarn: warnings.add,
502
505
  plugins: [],
503
506
  treeshake: false
504
507
  };
505
508
  await addPluginsFromCommandOption(configPlugin, inputOptions);
509
+ // Add plugin as *last* item after addPluginsFromCommandOption is complete.
510
+ // This plugin will trigger for imports not resolved by config plugin, and mark all non-relative imports as external.
511
+ inputOptions.plugins.push({
512
+ name: 'external-fallback',
513
+ resolveId: source => {
514
+ const looksLikeExternal = (source[0] !== '.' && !path.isAbsolute(source)) || source.slice(-5) === '.json';
515
+ return looksLikeExternal ? false : null;
516
+ }
517
+ });
506
518
  const bundle = await rollup.rollup(inputOptions);
507
519
  const { output: [{ code }] } = await bundle.generate({
508
520
  exports: 'named',
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
42
42
 
43
43
  const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
44
44
 
45
- var version = "4.48.1";
45
+ var version = "4.50.0";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.48.1
4
- Mon, 25 Aug 2025 05:42:43 GMT - commit 8b6b06b16c2198f1e61749f17cbdbc25f2d3d214
3
+ Rollup.js v4.50.0
4
+ Sun, 31 Aug 2025 07:37:46 GMT - commit 592e7d78f726bb038881f3c9ab4450d26c3db8c7
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": "4.48.1",
3
+ "version": "4.50.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -31,7 +31,8 @@
31
31
  "x86_64-pc-windows-msvc",
32
32
  "x86_64-unknown-freebsd",
33
33
  "x86_64-unknown-linux-gnu",
34
- "x86_64-unknown-linux-musl"
34
+ "x86_64-unknown-linux-musl",
35
+ "aarch64-unknown-linux-ohos"
35
36
  ]
36
37
  },
37
38
  "scripts": {
@@ -104,26 +105,27 @@
104
105
  "homepage": "https://rollupjs.org/",
105
106
  "optionalDependencies": {
106
107
  "fsevents": "~2.3.2",
107
- "@rollup/rollup-darwin-arm64": "4.48.1",
108
- "@rollup/rollup-android-arm64": "4.48.1",
109
- "@rollup/rollup-win32-arm64-msvc": "4.48.1",
110
- "@rollup/rollup-freebsd-arm64": "4.48.1",
111
- "@rollup/rollup-linux-arm64-gnu": "4.48.1",
112
- "@rollup/rollup-linux-arm64-musl": "4.48.1",
113
- "@rollup/rollup-android-arm-eabi": "4.48.1",
114
- "@rollup/rollup-linux-arm-gnueabihf": "4.48.1",
115
- "@rollup/rollup-linux-arm-musleabihf": "4.48.1",
116
- "@rollup/rollup-win32-ia32-msvc": "4.48.1",
117
- "@rollup/rollup-linux-loongarch64-gnu": "4.48.1",
118
- "@rollup/rollup-linux-riscv64-gnu": "4.48.1",
119
- "@rollup/rollup-linux-riscv64-musl": "4.48.1",
120
- "@rollup/rollup-linux-ppc64-gnu": "4.48.1",
121
- "@rollup/rollup-linux-s390x-gnu": "4.48.1",
122
- "@rollup/rollup-darwin-x64": "4.48.1",
123
- "@rollup/rollup-win32-x64-msvc": "4.48.1",
124
- "@rollup/rollup-freebsd-x64": "4.48.1",
125
- "@rollup/rollup-linux-x64-gnu": "4.48.1",
126
- "@rollup/rollup-linux-x64-musl": "4.48.1"
108
+ "@rollup/rollup-darwin-arm64": "4.50.0",
109
+ "@rollup/rollup-android-arm64": "4.50.0",
110
+ "@rollup/rollup-win32-arm64-msvc": "4.50.0",
111
+ "@rollup/rollup-freebsd-arm64": "4.50.0",
112
+ "@rollup/rollup-linux-arm64-gnu": "4.50.0",
113
+ "@rollup/rollup-linux-arm64-musl": "4.50.0",
114
+ "@rollup/rollup-android-arm-eabi": "4.50.0",
115
+ "@rollup/rollup-linux-arm-gnueabihf": "4.50.0",
116
+ "@rollup/rollup-linux-arm-musleabihf": "4.50.0",
117
+ "@rollup/rollup-win32-ia32-msvc": "4.50.0",
118
+ "@rollup/rollup-linux-loongarch64-gnu": "4.50.0",
119
+ "@rollup/rollup-linux-riscv64-gnu": "4.50.0",
120
+ "@rollup/rollup-linux-riscv64-musl": "4.50.0",
121
+ "@rollup/rollup-linux-ppc64-gnu": "4.50.0",
122
+ "@rollup/rollup-linux-s390x-gnu": "4.50.0",
123
+ "@rollup/rollup-darwin-x64": "4.50.0",
124
+ "@rollup/rollup-win32-x64-msvc": "4.50.0",
125
+ "@rollup/rollup-freebsd-x64": "4.50.0",
126
+ "@rollup/rollup-linux-x64-gnu": "4.50.0",
127
+ "@rollup/rollup-linux-x64-musl": "4.50.0",
128
+ "@rollup/rollup-openharmony-arm64": "4.50.0"
127
129
  },
128
130
  "dependencies": {
129
131
  "@types/estree": "1.0.8"