diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1de4b3bf8..cb81c7237 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,37 @@
# rollup changelog
+## 4.42.0
+
+_2025-06-06_
+
+### Features
+
+- Add option to allow the input to be located in the output in watch mode (#5966)
+
+### Pull Requests
+
+- [#5966](https://github.com/rollup/rollup/pull/5966): feat: watch mode add `allowInputInsideOutputPath` option (@btea, @lukastaegert)
+
+## 4.41.2
+
+_2025-06-06_
+
+### Bug Fixes
+
+- Detect named export usages in dynamic imports with `then` and non-arrow function expressions (#5977)
+- Do not replace usages of constant variables with their values for readability (#5968)
+
+### Pull Requests
+
+- [#5968](https://github.com/rollup/rollup/pull/5968): fix: preserve constant identifiers in unary expressions instead of magic numbers (@OmkarJ13, @lukastaegert)
+- [#5969](https://github.com/rollup/rollup/pull/5969): chore(deps): update dependency yargs-parser to v22 (@renovate[bot], @lukastaegert)
+- [#5970](https://github.com/rollup/rollup/pull/5970): chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
+- [#5971](https://github.com/rollup/rollup/pull/5971): chore(deps): lock file maintenance (@renovate[bot])
+- [#5976](https://github.com/rollup/rollup/pull/5976): Update README.md (@ftlno, @lukastaegert)
+- [#5977](https://github.com/rollup/rollup/pull/5977): fix: consider function expression in thenable when tree-shaking dynamic imports (@TrickyPi)
+- [#5981](https://github.com/rollup/rollup/pull/5981): fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
+- [#5982](https://github.com/rollup/rollup/pull/5982): Debug/fix watch pipeline (@lukastaegert)
+
## 4.41.1
_2025-05-24_
diff --git a/README.md b/README.md
index 52866181f..74b74b6b6 100644
--- a/README.md
+++ b/README.md
@@ -66,7 +66,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
## 特别赞助
-
+
TNG 自 2017 年以来一直在支持 [Lukas Taegert-Atkinson](https://github.com/lukastaegert) 在 Rollup 上的工作。
diff --git a/browser/package.json b/browser/package.json
index 6d6934fe0..a0457d6f8 100644
--- a/browser/package.json
+++ b/browser/package.json
@@ -1,6 +1,6 @@
{
"name": "@rollup/browser",
- "version": "4.41.1",
+ "version": "4.42.0",
"description": "Next-generation ES module bundler browser build",
"main": "dist/rollup.browser.js",
"module": "dist/es/rollup.browser.js",
diff --git a/cli/help.md b/cli/help.md
index 7a49dd45d..8c5560d02 100644
--- a/cli/help.md
+++ b/cli/help.md
@@ -90,6 +90,8 @@ Basic options:
--no-treeshake.unknownGlobalSideEffects Assume unknown globals do not throw
--validate Validate output
--waitForBundleInput Wait for bundle input files
+--watch.allowInputInsideOutputPath Whether the input path is allowed to be a
+ subpath of the output path
--watch.buildDelay Throttle watch rebuilds
--no-watch.clearScreen Do not clear the screen when rebuilding
--watch.exclude Exclude files from being watched
diff --git a/docs/command-line-interface/index.md b/docs/command-line-interface/index.md
index 569b454b1..285113dff 100755
--- a/docs/command-line-interface/index.md
+++ b/docs/command-line-interface/index.md
@@ -139,7 +139,8 @@ export default {
clearScreen,
exclude,
include,
- skipWrite
+ skipWrite,
+ allowInputInsideOutputPath
}
};
```
@@ -374,6 +375,7 @@ export default {
许多选项都有等效的命令行标志。在这些情况下,如果你正在使用配置文件,则此处传递的任何参数都将覆盖配置文件。以下是所有支持的选项列表:
```
+<<<<<<< HEAD
-c, --config 使用此配置文件
(如果使用参数但未指定值,则默认为 rollup.config.js)
-d, --dir 用于块的目录(如果不存在,则打印到 stdout)
@@ -469,6 +471,105 @@ export default {
--watch.onError 在 "ERROR" 事件上运行的 Shell 命令
--watch.onStart 在 "START" 事件上运行的 Shell 命令
--watch.skipWrite 在监视时不要将文件写入磁盘
+=======
+-c, --config Use this config file (if argument is used but value
+ is unspecified, defaults to rollup.config.js)
+-d, --dir Directory for chunks (if absent, prints to stdout)
+-e, --external Comma-separate list of module IDs to exclude
+-f, --format Type of output (amd, cjs, es, iife, umd, system)
+-g, --globals Comma-separate list of `moduleID:Global` pairs
+-h, --help Show this help message
+-i, --input Input (alternative to )
+-m, --sourcemap Generate sourcemap (`-m inline` for inline map)
+-n, --name Name for UMD export
+-o, --file