Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(en): merge rollup/master into rollup-docs-cn/master @ 615efa04 #169

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

docschina-bot
Copy link
Collaborator

此 PR 自动生成。

合并 rollup/rollup 的修改至本仓库(@ 615efa0

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

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

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

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

lukastaegert and others added 18 commits January 28, 2025 07:07
It is quite flaky but not definitely broken. This causes issues for unrelated
changes.
* Set hasDeoptimizedCache to true as early as possible

* add test
"This remove" → "This removes"
* feat: optimize the literal value of unary expressions

* correct the return value
* fix(deps): update swc monorepo

* Manually update further

---------

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

* Revert update as that needs to match the transitive dependency

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
…thin logical expressions (#5819)

* return UnknownValue if getLiteralValueAtPath is called recursively within logical expressions

* tweak test
Required to add default chunking
* Reapply object tree-shaking

This reverts commit 10bc150.

* Only rely on stable property paths when deoptimizing member expressions

Literal values may be deoptimized later. At that point, we would otherwise need
to deoptimize again. For hasEffects, we can use dynamic literal values as those
checks are repeatedly executed.

Resolves #5735

* Do not mark unused rest parameters as undefined

resolves #5739

* add an test for issue 5734

* update linting

* reduce the count of includePath for ClassBody

* Split includePath into include, includeNode, includePath

- include is for re-including on every pass
- includePath is only for including specific non-empty paths once
- includeNode is for triggering logic on first include, like includePath.

* update test

* Test if using a shared prototype function can improve performance

* Use trivial includeNode method where possible

* Remove unnecessary applyDeoptimizations calls

* Move applyDeoptimizations check from include to includeNode

This should avoid an unnecessary check.

* Only deoptimize body for ArrowFunctionExpression

For block scopes, this is not needed.

* Handle accessed outside variables on includeNode rather than applyDeoptimizations

* If a node has not special logic on include or deoptimize, replace check

* See if we can reduce the number of tree-shaking passes

The idea is to again eagerly include variable inits, but not in a nested call
but in a loop at the end of the regular pass.

* Ensure that deoptimizing a MemberExpression does not crash

* Ensure the "in" operators includes is second operand

* When including all children of a CallExpression, also include all paths

* 4.30.0-0

* Make sure to use builtins when building for Node

Solves an issue when linking with pnpm.

* Revert making objects truthy for now

This solves an issue with TypeScript enums. A proper solution should be to
improve tracking of uninitialized vars.

* 4.30.0-1

* Include variable inits per module instead of per pass

This should reduce peak memory consumption.

* Skip checking for effects in functions with side effects

* Do not cache known paramter value as frozen

Adding the fallback on each call is not more expensive.

* Limit number of tracked deoptimized fields for parameters

* 4.31.0-0

* Remove unnecessary array conversion

* Only track top-level inclusions for parameters

This is a massive performance improvement especially in scenarios with recursive
calls where different properties of a function argument are passed to the same
function.

* Only track arguments in the ArgumentsVariable if referenced

This should save some memory which is rarely needed.

* 4.33.0-0

---------

Co-authored-by: XiaoPi <530257315@qq.com>
…zed (#5827)

* Ensure that functions provided to a constructor are properly deoptimized

* Make argument inclusion more symmetric (resolves #5823)
Copy link

vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup-docs-cn ❌ Failed (Inspect) Feb 4, 2025 10:13pm

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for relaxed-alfajores-47dd1b failed.

Name Link
🔨 Latest commit f5cd29c
🔍 Latest deploy log https://app.netlify.com/sites/relaxed-alfajores-47dd1b/deploys/67a290f808d88d0008644116

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.

5 participants