rollup 4.48.1 → 4.49.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.49.0
5
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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 : source;
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0
4
+ Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
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.49.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -104,26 +104,26 @@
104
104
  "homepage": "https://rollupjs.org/",
105
105
  "optionalDependencies": {
106
106
  "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"
107
+ "@rollup/rollup-darwin-arm64": "4.49.0",
108
+ "@rollup/rollup-android-arm64": "4.49.0",
109
+ "@rollup/rollup-win32-arm64-msvc": "4.49.0",
110
+ "@rollup/rollup-freebsd-arm64": "4.49.0",
111
+ "@rollup/rollup-linux-arm64-gnu": "4.49.0",
112
+ "@rollup/rollup-linux-arm64-musl": "4.49.0",
113
+ "@rollup/rollup-android-arm-eabi": "4.49.0",
114
+ "@rollup/rollup-linux-arm-gnueabihf": "4.49.0",
115
+ "@rollup/rollup-linux-arm-musleabihf": "4.49.0",
116
+ "@rollup/rollup-win32-ia32-msvc": "4.49.0",
117
+ "@rollup/rollup-linux-loongarch64-gnu": "4.49.0",
118
+ "@rollup/rollup-linux-riscv64-gnu": "4.49.0",
119
+ "@rollup/rollup-linux-riscv64-musl": "4.49.0",
120
+ "@rollup/rollup-linux-ppc64-gnu": "4.49.0",
121
+ "@rollup/rollup-linux-s390x-gnu": "4.49.0",
122
+ "@rollup/rollup-darwin-x64": "4.49.0",
123
+ "@rollup/rollup-win32-x64-msvc": "4.49.0",
124
+ "@rollup/rollup-freebsd-x64": "4.49.0",
125
+ "@rollup/rollup-linux-x64-gnu": "4.49.0",
126
+ "@rollup/rollup-linux-x64-musl": "4.49.0"
127
127
  },
128
128
  "dependencies": {
129
129
  "@types/estree": "1.0.8"