rollup 4.40.0 → 4.40.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 CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.40.0
5
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
4
+ Rollup.js v4.40.1
5
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
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.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
15
15
  import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
 
18
- var version = "4.40.0";
18
+ var version = "4.40.1";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -18136,7 +18136,9 @@ class Chunk {
18136
18136
  for (const module of entryModules) {
18137
18137
  if (module.preserveSignature === 'allow-extension') {
18138
18138
  const canPreserveExports = this.canPreserveModuleExports(module);
18139
- if (canPreserveExports) {
18139
+ if (canPreserveExports &&
18140
+ !module.chunkFileNames.size &&
18141
+ module.chunkNames.every(({ isUserDefined }) => !isUserDefined)) {
18140
18142
  this.allowExtensionModules.add(module);
18141
18143
  if (!this.facadeModule) {
18142
18144
  this.facadeModule = module;
@@ -19244,12 +19246,12 @@ function analyzeModuleGraph(entries) {
19244
19246
  const awaitedDynamicImportsForCurrentEntry = new Set();
19245
19247
  dynamicImportModulesByEntry[entryIndex] = dynamicImportsForCurrentEntry;
19246
19248
  awaitedDynamicImportModulesByEntry[entryIndex] = awaitedDynamicImportsForCurrentEntry;
19247
- const modulesToHandle = new Set([currentEntry]);
19248
- for (const module of modulesToHandle) {
19249
+ const staticDependencies = new Set([currentEntry]);
19250
+ for (const module of staticDependencies) {
19249
19251
  getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(entryIndex);
19250
19252
  for (const dependency of module.getDependenciesToBeIncluded()) {
19251
19253
  if (!(dependency instanceof ExternalModule)) {
19252
- modulesToHandle.add(dependency);
19254
+ staticDependencies.add(dependency);
19253
19255
  }
19254
19256
  }
19255
19257
  for (const { resolution } of module.dynamicImports) {
@@ -19259,9 +19261,12 @@ function analyzeModuleGraph(entries) {
19259
19261
  dynamicEntryModules.add(resolution);
19260
19262
  allEntriesSet.add(resolution);
19261
19263
  dynamicImportsForCurrentEntry.add(resolution);
19262
- if (resolution.includedDirectTopLevelAwaitingDynamicImporters.has(currentEntry)) {
19263
- awaitedDynamicEntryModules.add(resolution);
19264
- awaitedDynamicImportsForCurrentEntry.add(resolution);
19264
+ for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
19265
+ if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
19266
+ awaitedDynamicEntryModules.add(resolution);
19267
+ awaitedDynamicImportsForCurrentEntry.add(resolution);
19268
+ break;
19269
+ }
19265
19270
  }
19266
19271
  }
19267
19272
  }
@@ -21441,7 +21446,7 @@ function generateAssetFileName(name, names, source, originalFileName, originalFi
21441
21446
  : outputOptions.assetFileNames, 'output.assetFileNames', {
21442
21447
  ext: () => extname(emittedName).slice(1),
21443
21448
  extname: () => extname(emittedName),
21444
- hash: size => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
21449
+ hash: size => sourceHash.slice(0, Math.min(Math.max(0, size || DEFAULT_HASH_SIZE), MAX_HASH_SIZE)),
21445
21450
  name: () => emittedName.slice(0, Math.max(0, emittedName.length - extname(emittedName).length))
21446
21451
  }), bundle);
21447
21452
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
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.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
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.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
17
17
  const node_perf_hooks = require('node:perf_hooks');
18
18
  const promises = require('node:fs/promises');
19
19
 
20
- var version = "4.40.0";
20
+ var version = "4.40.1";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -215,7 +215,7 @@ function generateAssetFileName(name, names, source, originalFileName, originalFi
215
215
  : outputOptions.assetFileNames, 'output.assetFileNames', {
216
216
  ext: () => path.extname(emittedName).slice(1),
217
217
  extname: () => path.extname(emittedName),
218
- hash: size => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
218
+ hash: size => sourceHash.slice(0, Math.min(Math.max(0, size || DEFAULT_HASH_SIZE), MAX_HASH_SIZE)),
219
219
  name: () => emittedName.slice(0, Math.max(0, emittedName.length - path.extname(emittedName).length))
220
220
  }), bundle);
221
221
  }
@@ -19614,7 +19614,9 @@ class Chunk {
19614
19614
  for (const module of entryModules) {
19615
19615
  if (module.preserveSignature === 'allow-extension') {
19616
19616
  const canPreserveExports = this.canPreserveModuleExports(module);
19617
- if (canPreserveExports) {
19617
+ if (canPreserveExports &&
19618
+ !module.chunkFileNames.size &&
19619
+ module.chunkNames.every(({ isUserDefined }) => !isUserDefined)) {
19618
19620
  this.allowExtensionModules.add(module);
19619
19621
  if (!this.facadeModule) {
19620
19622
  this.facadeModule = module;
@@ -20722,12 +20724,12 @@ function analyzeModuleGraph(entries) {
20722
20724
  const awaitedDynamicImportsForCurrentEntry = new Set();
20723
20725
  dynamicImportModulesByEntry[entryIndex] = dynamicImportsForCurrentEntry;
20724
20726
  awaitedDynamicImportModulesByEntry[entryIndex] = awaitedDynamicImportsForCurrentEntry;
20725
- const modulesToHandle = new Set([currentEntry]);
20726
- for (const module of modulesToHandle) {
20727
+ const staticDependencies = new Set([currentEntry]);
20728
+ for (const module of staticDependencies) {
20727
20729
  getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(entryIndex);
20728
20730
  for (const dependency of module.getDependenciesToBeIncluded()) {
20729
20731
  if (!(dependency instanceof ExternalModule)) {
20730
- modulesToHandle.add(dependency);
20732
+ staticDependencies.add(dependency);
20731
20733
  }
20732
20734
  }
20733
20735
  for (const { resolution } of module.dynamicImports) {
@@ -20737,9 +20739,12 @@ function analyzeModuleGraph(entries) {
20737
20739
  dynamicEntryModules.add(resolution);
20738
20740
  allEntriesSet.add(resolution);
20739
20741
  dynamicImportsForCurrentEntry.add(resolution);
20740
- if (resolution.includedDirectTopLevelAwaitingDynamicImporters.has(currentEntry)) {
20741
- awaitedDynamicEntryModules.add(resolution);
20742
- awaitedDynamicImportsForCurrentEntry.add(resolution);
20742
+ for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
20743
+ if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
20744
+ awaitedDynamicEntryModules.add(resolution);
20745
+ awaitedDynamicImportsForCurrentEntry.add(resolution);
20746
+ break;
20747
+ }
20743
20748
  }
20744
20749
  }
20745
20750
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
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.40.0",
3
+ "version": "4.40.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -109,26 +109,26 @@
109
109
  "homepage": "https://rollupjs.org/",
110
110
  "optionalDependencies": {
111
111
  "fsevents": "~2.3.2",
112
- "@rollup/rollup-darwin-arm64": "4.40.0",
113
- "@rollup/rollup-android-arm64": "4.40.0",
114
- "@rollup/rollup-win32-arm64-msvc": "4.40.0",
115
- "@rollup/rollup-freebsd-arm64": "4.40.0",
116
- "@rollup/rollup-linux-arm64-gnu": "4.40.0",
117
- "@rollup/rollup-linux-arm64-musl": "4.40.0",
118
- "@rollup/rollup-android-arm-eabi": "4.40.0",
119
- "@rollup/rollup-linux-arm-gnueabihf": "4.40.0",
120
- "@rollup/rollup-linux-arm-musleabihf": "4.40.0",
121
- "@rollup/rollup-win32-ia32-msvc": "4.40.0",
122
- "@rollup/rollup-linux-loongarch64-gnu": "4.40.0",
123
- "@rollup/rollup-linux-riscv64-gnu": "4.40.0",
124
- "@rollup/rollup-linux-riscv64-musl": "4.40.0",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.40.0",
126
- "@rollup/rollup-linux-s390x-gnu": "4.40.0",
127
- "@rollup/rollup-darwin-x64": "4.40.0",
128
- "@rollup/rollup-win32-x64-msvc": "4.40.0",
129
- "@rollup/rollup-freebsd-x64": "4.40.0",
130
- "@rollup/rollup-linux-x64-gnu": "4.40.0",
131
- "@rollup/rollup-linux-x64-musl": "4.40.0"
112
+ "@rollup/rollup-darwin-arm64": "4.40.1",
113
+ "@rollup/rollup-android-arm64": "4.40.1",
114
+ "@rollup/rollup-win32-arm64-msvc": "4.40.1",
115
+ "@rollup/rollup-freebsd-arm64": "4.40.1",
116
+ "@rollup/rollup-linux-arm64-gnu": "4.40.1",
117
+ "@rollup/rollup-linux-arm64-musl": "4.40.1",
118
+ "@rollup/rollup-android-arm-eabi": "4.40.1",
119
+ "@rollup/rollup-linux-arm-gnueabihf": "4.40.1",
120
+ "@rollup/rollup-linux-arm-musleabihf": "4.40.1",
121
+ "@rollup/rollup-win32-ia32-msvc": "4.40.1",
122
+ "@rollup/rollup-linux-loongarch64-gnu": "4.40.1",
123
+ "@rollup/rollup-linux-riscv64-gnu": "4.40.1",
124
+ "@rollup/rollup-linux-riscv64-musl": "4.40.1",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.40.1",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.40.1",
127
+ "@rollup/rollup-darwin-x64": "4.40.1",
128
+ "@rollup/rollup-win32-x64-msvc": "4.40.1",
129
+ "@rollup/rollup-freebsd-x64": "4.40.1",
130
+ "@rollup/rollup-linux-x64-gnu": "4.40.1",
131
+ "@rollup/rollup-linux-x64-musl": "4.40.1"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.7"
@@ -143,7 +143,7 @@
143
143
  "@codemirror/search": "^6.5.10",
144
144
  "@codemirror/state": "^6.5.2",
145
145
  "@codemirror/view": "^6.36.5",
146
- "@eslint/js": "^9.24.0",
146
+ "@eslint/js": "^9.25.1",
147
147
  "@inquirer/prompts": "^7.4.1",
148
148
  "@jridgewell/sourcemap-codec": "^1.5.0",
149
149
  "@mermaid-js/mermaid-cli": "^11.4.2",
@@ -157,7 +157,7 @@
157
157
  "@rollup/plugin-terser": "^0.4.4",
158
158
  "@rollup/plugin-typescript": "^12.1.2",
159
159
  "@rollup/pluginutils": "^5.1.4",
160
- "@shikijs/vitepress-twoslash": "^3.2.1",
160
+ "@shikijs/vitepress-twoslash": "^3.2.2",
161
161
  "@types/mocha": "^10.0.10",
162
162
  "@types/node": "^18.19.86",
163
163
  "@types/picomatch": "^4.0.0",
@@ -176,8 +176,8 @@
176
176
  "date-time": "^4.0.0",
177
177
  "es5-shim": "^4.6.7",
178
178
  "es6-shim": "^0.35.8",
179
- "eslint": "^9.24.0",
180
- "eslint-config-prettier": "^10.1.1",
179
+ "eslint": "^9.25.1",
180
+ "eslint-config-prettier": "^10.1.2",
181
181
  "eslint-plugin-prettier": "^5.2.6",
182
182
  "eslint-plugin-unicorn": "^58.0.0",
183
183
  "eslint-plugin-vue": "^10.0.0",
@@ -188,7 +188,7 @@
188
188
  "globals": "^16.0.0",
189
189
  "husky": "^9.1.7",
190
190
  "is-reference": "^3.0.3",
191
- "lint-staged": "^15.5.0",
191
+ "lint-staged": "^15.5.1",
192
192
  "locate-character": "^3.0.0",
193
193
  "magic-string": "^0.30.17",
194
194
  "mocha": "^11.1.0",
@@ -196,13 +196,13 @@
196
196
  "nyc": "^17.1.0",
197
197
  "picocolors": "^1.1.1",
198
198
  "picomatch": "^4.0.2",
199
- "pinia": "^3.0.1",
199
+ "pinia": "^3.0.2",
200
200
  "prettier": "^3.5.3",
201
201
  "prettier-plugin-organize-imports": "^4.1.0",
202
202
  "pretty-bytes": "^6.1.1",
203
203
  "pretty-ms": "^9.2.0",
204
204
  "requirejs": "^2.3.7",
205
- "rollup": "^4.39.0",
205
+ "rollup": "^4.40.0",
206
206
  "rollup-plugin-license": "^3.6.0",
207
207
  "rollup-plugin-string": "^3.0.0",
208
208
  "semver": "^7.7.1",
@@ -214,8 +214,8 @@
214
214
  "terser": "^5.39.0",
215
215
  "tslib": "^2.8.1",
216
216
  "typescript": "^5.8.3",
217
- "typescript-eslint": "^8.29.1",
218
- "vite": "^6.2.6",
217
+ "typescript-eslint": "^8.31.0",
218
+ "vite": "^6.3.2",
219
219
  "vitepress": "^1.6.3",
220
220
  "vue": "^3.5.13",
221
221
  "vue-tsc": "^2.2.8",
@@ -263,6 +263,7 @@
263
263
  "require": "./dist/parseAst.js",
264
264
  "import": "./dist/es/parseAst.js"
265
265
  },
266
- "./dist/*": "./dist/*"
266
+ "./dist/*": "./dist/*",
267
+ "./package.json": "./package.json"
267
268
  }
268
269
  }