Skip to content

Commit c411450

Browse files
authored
Merge pull request #180 from rollup/sync-5a7f9e21
docs(en): merge rollup/master into rollup-docs-cn/master @ 5a7f9e2
2 parents efefd6b + 23ac27f commit c411450

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# rollup changelog
22

3+
## 4.44.1
4+
5+
_2025-06-26_
6+
7+
### Bug Fixes
8+
9+
- Reinstate maxParallelFileOps limit of 1000 to resolve the issue for some (#5992)
10+
11+
### Pull Requests
12+
13+
- [#5988](https://github.com/rollup/rollup/pull/5988): fix(deps): lock file maintenance minor/patch updates (@renovate[bot], @lukastaegert)
14+
- [#5992](https://github.com/rollup/rollup/pull/5992): Set maxParallelFileOps to 1000 (@lukastaegert)
15+
316
## 4.44.0
417

518
_2025-06-19_

browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rollup/browser",
3-
"version": "4.44.0",
3+
"version": "4.44.1",
44
"description": "Next-generation ES module bundler browser build",
55
"main": "dist/rollup.browser.js",
66
"module": "dist/es/rollup.browser.js",

docs/configuration-options/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ buildWithCache()
637637
| -----: | :------------------------------ |
638638
| 类型: | `number` |
639639
| CLI: | `--maxParallelFileOps <number>` |
640-
| 默认: | `Infinity` |
640+
| 默认: | 1000 |
641641

642642
该选项限制 rollup 在读取模块或写入 chunk 时,同时能打开的文件数量。如果没有限制或者数值足够高,构建可能会失败,显示“EMFILE: Too many open files”(EMFILE:打开的文件数过多)。这取决于操作系统限制的句柄数(open file handles)大小。如果将限制设置得过低,并且使用了依赖 [`this.load`](../plugin-development/index.md#this-load) 上下文函数的插件(例如 `commonjs` 插件),那么可能会出现构建停滞且没有错误消息的情况,因为它限制了并行 `load` 调用的数量。
643643

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup",
3-
"version": "4.44.0",
3+
"version": "4.44.1",
44
"description": "Next-generation ES module bundler",
55
"main": "dist/rollup.js",
66
"module": "dist/es/rollup.js",

src/utils/options/normalizeInputOptions.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,11 @@ const getMaxParallelFileOps = (
176176
config: InputOptions
177177
): NormalizedInputOptions['maxParallelFileOps'] => {
178178
const maxParallelFileOps = config.maxParallelFileOps;
179-
if (typeof maxParallelFileOps !== 'number' || maxParallelFileOps <= 0) return Infinity;
180-
return maxParallelFileOps;
179+
if (typeof maxParallelFileOps === 'number') {
180+
if (maxParallelFileOps <= 0) return Infinity;
181+
return maxParallelFileOps;
182+
}
183+
return 1000;
181184
};
182185

183186
const getModuleContext = (

test/function/samples/options-hook/_config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ module.exports = defineTest({
1111
name: 'test-plugin',
1212
buildStart(options) {
1313
// The fs option is not json stringifiable
14-
const { fs, maxParallelFileOps, ...restOptions } = options;
14+
const { fs, ...restOptions } = options;
1515
assert.ok(fs);
16-
assert.strictEqual(maxParallelFileOps, Infinity);
1716
assert.deepStrictEqual(JSON.parse(JSON.stringify(restOptions)), {
1817
context: 'undefined',
1918
experimentalCacheExpiry: 10,
@@ -22,6 +21,7 @@ module.exports = defineTest({
2221
jsx: false,
2322
logLevel: 'info',
2423
makeAbsoluteExternalsRelative: 'ifRelativeSource',
24+
maxParallelFileOps: 1000,
2525
perf: false,
2626
plugins: [
2727
{

0 commit comments

Comments
 (0)