Skip to content

Commit da3135a

Browse files
committed
docs(en): merging all conflicts
2 parents 467f961 + 19312a7 commit da3135a

File tree

426 files changed

+96476
-1857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

426 files changed

+96476
-1857
lines changed

Diff for: .github/workflows/build-and-tests.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ jobs:
339339
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
340340
restore-keys: node-modules-${{ runner.os }}
341341
- name: Build
342-
uses: cross-platform-actions/action@v0.26.0
342+
uses: cross-platform-actions/action@v0.27.0
343343
with:
344344
operating_system: ${{ matrix.settings.name }}
345345
architecture: ${{ matrix.settings.architecture }}
@@ -391,10 +391,11 @@ jobs:
391391
# - arch: armv7
392392
# distro: alpine_latest
393393
# target: armv7-unknown-linux-musleabihf
394-
- arch: ppc64le
395-
distro: ubuntu_latest
396-
target: powerpc64le-unknown-linux-gnu
397-
use-nvm: true
394+
# This one has become very flaky as of late
395+
# - arch: ppc64le
396+
# distro: ubuntu_latest
397+
# target: powerpc64le-unknown-linux-gnu
398+
# use-nvm: true
398399
- arch: s390x
399400
distro: ubuntu_latest
400401
target: s390x-unknown-linux-gnu

Diff for: CHANGELOG.md

+95
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,100 @@
11
# rollup changelog
22

3+
## 4.34.4
4+
5+
_2025-02-05_
6+
7+
### Bug Fixes
8+
9+
- Do not tree-shake properties if a rest element is used in destructuring (#5833)
10+
11+
### Pull Requests
12+
13+
- [#5833](https://github.com/rollup/rollup/pull/5833): include all properties if a rest element is destructed (@TrickyPi)
14+
15+
## 4.34.3
16+
17+
_2025-02-05_
18+
19+
### Bug Fixes
20+
21+
- Ensure properties of "this" are included in getters (#5831)
22+
23+
### Pull Requests
24+
25+
- [#5831](https://github.com/rollup/rollup/pull/5831): include the properties that accessed by this (@TrickyPi)
26+
27+
## 4.34.2
28+
29+
_2025-02-04_
30+
31+
### Bug Fixes
32+
33+
- Fix an issue where not all usages of a function were properly detected (#5827)
34+
35+
### Pull Requests
36+
37+
- [#5827](https://github.com/rollup/rollup/pull/5827): Ensure that functions provided to a constructor are properly deoptimized (@lukastaegert)
38+
39+
## 4.34.1
40+
41+
_2025-02-03_
42+
43+
### Bug Fixes
44+
45+
- Ensure throwing objects includes the entire object (#5825)
46+
47+
### Pull Requests
48+
49+
- [#5825](https://github.com/rollup/rollup/pull/5825): Ensure that all properties of throw statements are included (@lukastaegert)
50+
51+
## 4.34.0
52+
53+
_2025-02-01_
54+
55+
### Features
56+
57+
- Tree-shake unused properties in object literals (re-implements #5420) (#5737)
58+
59+
### Pull Requests
60+
61+
- [#5737](https://github.com/rollup/rollup/pull/5737): Reapply object tree-shaking (@lukastaegert, @TrickyPi)
62+
63+
## 4.33.0
64+
65+
_2025-02-01_
66+
67+
### Features
68+
69+
- Correctly detect literal value of more negated expressions (#5812)
70+
71+
### Bug Fixes
72+
73+
- Use the correct with/assert attribute key in dynamic imports (#5818)
74+
- Fix an issue where logical expressions were considered to have the wrong value (#5819)
75+
76+
### Pull Requests
77+
78+
- [#5812](https://github.com/rollup/rollup/pull/5812): feat: optimize the literal value of unary expressions (@TrickyPi)
79+
- [#5816](https://github.com/rollup/rollup/pull/5816): fix(deps): update swc monorepo (major) (@renovate[bot], @lukastaegert)
80+
- [#5817](https://github.com/rollup/rollup/pull/5817): fix(deps): lock file maintenance minor/patch updates (@renovate[bot], @lukastaegert)
81+
- [#5818](https://github.com/rollup/rollup/pull/5818): support for changing the attributes key for dynamic imports (@TrickyPi)
82+
- [#5819](https://github.com/rollup/rollup/pull/5819): Return UnknownValue if getLiteralValueAtPath is called recursively within logical expressions (@TrickyPi)
83+
- [#5820](https://github.com/rollup/rollup/pull/5820): return null (@kingma-sbw)
84+
85+
## 4.32.1
86+
87+
_2025-01-28_
88+
89+
### Bug Fixes
90+
91+
- Fix possible crash when optimizing logical expressions (#5804)
92+
93+
### Pull Requests
94+
95+
- [#5804](https://github.com/rollup/rollup/pull/5804): fix: set hasDeoptimizedCache to true as early as possible (@TrickyPi)
96+
- [#5813](https://github.com/rollup/rollup/pull/5813): Fix typo (@kantuni)
97+
398
## 4.32.0
499

5100
_2025-01-24_

Diff for: browser/package.json

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

Diff for: docs/configuration-options/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,13 @@ import { fileURLToPath } from 'node:url';
129129
export default {
130130
input: Object.fromEntries(
131131
globSync('src/**/*.js').map(file => [
132+
<<<<<<< HEAD
132133
// 这里将删除 `src/` 以及每个文件的扩展名。
133134
// 因此,例如 src/nested/foo.js 会变成 nested/foo
135+
=======
136+
// This removes `src/` as well as the file extension from each
137+
// file, so e.g. src/nested/foo.js becomes nested/foo
138+
>>>>>>> 19312a762c3cda56a0f6dc80a0887a4499db2257
134139
path.relative(
135140
'src',
136141
file.slice(0, file.length - path.extname(file).length)
@@ -1465,6 +1470,8 @@ function manualChunks(id) {
14651470
if (id.includes('node_modules')) {
14661471
return 'vendor';
14671472
}
1473+
1474+
return null;
14681475
}
14691476
```
14701477

0 commit comments

Comments
 (0)