Skip to content

docs(en): merge rollup/master into rollup-docs-cn/master @ 8faa1877#213

Open
docschina-bot wants to merge 26 commits into
masterfrom
sync-8faa1877
Open

docs(en): merge rollup/master into rollup-docs-cn/master @ 8faa1877#213
docschina-bot wants to merge 26 commits into
masterfrom
sync-8faa1877

Conversation

@docschina-bot

Copy link
Copy Markdown
Collaborator

此 PR 自动生成。

合并 rollup/rollup 的修改至本仓库(@ 8faa187

以下文件存在冲突,可能需要重新翻译:

请解决所有冲突后提交到此 pull request,可直接在 Github 修改、切换到 sync-8faa1877 分支进行修改或者使用 Github Desktop 拉取此 pr 修改并提交。

禁止使用 Squash Merge 来合并此 Pull Request!

使用该操作会导致上游仓库的内容丢失,并致使下一次合并产生冲突。

lukastaegert and others added 26 commits June 4, 2026 06:38
* Improve documentation for manualPureFunctions

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
…ing PTR lookups (#6404)

* fix: set report.excludeNetwork=true before getReport() to avoid blocking PTR lookups

* test: skip excludeNetwork test on Windows where getReport() runs in a child process

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update dependency concurrently to v10

* Pin previous concurrently

We need to update our NodeJS baseline first.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
…te chunks (#6374)

* Add a test

* Extract the static dependencies imported by manual chunks into separate chunks

* Adjust the log info

* Update the code according to Copilot’s review

* fix: use some instead of find for boolean check

* test: add test for shared static dependency between manual chunks

* Avoid unnecessary array

Initially, we are only collection single modules with their dependent entries.

* Avoid full iteration by gathering entry information

* Treat manual chunks as entry points for chunk assignment

This will effectively avoid cycles where manual chunks import back from entry
chunks. The price, though, is that it might create more chunks.
For the longer term, it would be nice to replace the current logic where
non-explicit manual chunks try to include as many static dependencies as
possible with a logic where they behave as any entry points and just include all
dependencies not shared with another entry.

* Reduce number of chunks by treating all manual chunk members as dependencies

Basically for the purpose of analysis, all explicit members of a manual chunk
are treated as the same module, meaning dependencies are shared in the chunk.
This mirrors what will happen in the output and reduces generated chunks.

* Refactor manual chunk assembly

* Track if we already added a manual chunk

* Update codecov action as it is failing

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
* chore(deps): lock file maintenance minor/patch updates

* Resolve audit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): lock file maintenance minor/patch updates

* Resolve audit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix(deps): update minor/patch updates

* Fix dependency update

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
…Filter (#6415)

The wildcard pattern matching in testFilter checked whether the value
started with the prefix (parts[0]) but did not advance the search
position past it before checking the suffix. This caused false positive
matches when the prefix and suffix were the same string and the value was
exactly equal to one copy of that string.

For example, the pattern 'code:foo*foo' incorrectly matched { code: 'foo' }
because 'foo'.startsWith('foo') is true AND 'foo'.endsWith('foo') is true,
even though the wildcard '*' would need to match -3 characters (impossible).

The fix slices value past parts[0] after the prefix check so that the suffix
search only operates on the remaining substring.

Co-authored-by: JSap0914 <[email protected]>
Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
* Use import attributes for importing JSON

* Apply review comments

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
…n filenames (#6408)

* fix: insert conflict numbers before first extension in multi-extension filenames

makeUnique used node:path extname() which returns only the last
extension, so a chunkFileNames pattern like "chunk.d.ts" would produce
"chunk.d2.ts" on conflict instead of the correct "chunk2.d.ts". TypeScript
declaration chunks generated with rollup-plugin-dts are a common example
where this matters because the toolchain requires the full .d.ts extension.

Replace the extname() call with a helper that finds the first dot in the
filename (skipping a leading dot in hidden-file names) so that all
trailing extensions are preserved as a unit when the dedup index is
inserted.

Fixes #5822

* fix: inline getFirstExtension and fix prettier formatting per review

Apply lukastaegert's review comments: inline the getFirstExtension helper
directly into makeUnique, working with dotIndex to avoid the Math.max call,
and always start the dot search at index 1 instead of conditionally skipping
dotfiles. Also fix a prettier line-length violation in the test config.

* Ignore dots in directory names and improve coverage

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
* skip side-effect-free external imports when hoisting is off

* refactor no-hoist dependency pruning

* derive imports from rendered dependencies without mutating this.dependencies

The previous approach deleted side-effect-free external dependencies
from the long-lived this.dependencies set as a side effect of
getRenderedDependencies(). This created a phase-dependent invariant
where readers of this.dependencies saw different contents before and
after rendering, and could race across concurrent chunk renders (the
renderDynamicImport plugin hook reads targetChunk.dependencies during
another chunk's renderModules).

Instead, leave this.dependencies untouched and derive chunk.imports
from getRenderedDependencies().keys(), which already excludes the
skipped dependencies. The rendered output and chunk.imports stay in
sync with emitted code without mutating the dependency graph.

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
… kind logic to new method (#6416)

* refactor(rust/parser_ast/ast_nodes/property): extract write buffer kind logic to new method

* refactor(rust/parser_ast/ast_nodes/property): add #[inline] proc macro to write_buffer_kind method

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rollup-docs-cn Error Error Jun 19, 2026 10:53pm

Request Review

@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deploy Preview for relaxed-alfajores-47dd1b failed.

Name Link
🔨 Latest commit a9139a6
🔍 Latest deploy log https://app.netlify.com/projects/relaxed-alfajores-47dd1b/deploys/6a35c848ec8dcb0008c67124

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.36842% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.75%. Comparing base (6e818f0) to head (a9139a6).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
cli/cli.ts 0.00% 1 Missing ⚠️
native.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #213   +/-   ##
=======================================
  Coverage   98.74%   98.75%           
=======================================
  Files         274      275    +1     
  Lines       10787    10822   +35     
  Branches     2883     2887    +4     
=======================================
+ Hits        10652    10687   +35     
  Misses         92       92           
  Partials       43       43           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants