Skip to content

Commit 44c149a

Browse files
committed
Merge branch 'master' of https://github.com/rollup/rollup into sync-02da7efe
2 parents baca3e7 + 02da7ef commit 44c149a

File tree

23 files changed

+206
-193
lines changed

23 files changed

+206
-193
lines changed

CHANGELOG.md

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

3+
## 4.40.2
4+
5+
_2025-05-06_
6+
7+
### Bug Fixes
8+
9+
- Create correct IIFE/AMD/UMD bundles when using a mutable default export (#5934)
10+
- Fix execution order when using top-level await for dynamic imports with inlineDynamicImports (#5937)
11+
- Throw when the output is watched in watch mode (#5939)
12+
13+
### Pull Requests
14+
15+
- [#5934](https://github.com/rollup/rollup/pull/5934): fix(exports): avoid "exports is not defined" `ReferenceError` (@dasa)
16+
- [#5937](https://github.com/rollup/rollup/pull/5937): consider TLA imports have higher execution priority (@TrickyPi)
17+
- [#5939](https://github.com/rollup/rollup/pull/5939): fix: watch mode input should not be an output subpath (@btea)
18+
- [#5940](https://github.com/rollup/rollup/pull/5940): chore(deps): update dependency vite to v6.3.4 [security] (@renovate[bot])
19+
- [#5941](https://github.com/rollup/rollup/pull/5941): chore(deps): update dependency eslint-plugin-unicorn to v59 (@renovate[bot])
20+
- [#5942](https://github.com/rollup/rollup/pull/5942): fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
21+
- [#5943](https://github.com/rollup/rollup/pull/5943): fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
22+
323
## 4.40.1
424

525
_2025-04-28_

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.40.1",
3+
"version": "4.40.2",
44
"description": "Next-generation ES module bundler browser build",
55
"main": "dist/rollup.browser.js",
66
"module": "dist/es/rollup.browser.js",

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup",
3-
"version": "4.40.1",
3+
"version": "4.40.2",
44
"description": "Next-generation ES module bundler",
55
"main": "dist/rollup.js",
66
"module": "dist/es/rollup.js",
@@ -159,7 +159,7 @@
159159
"eslint": "^9.25.1",
160160
"eslint-config-prettier": "^10.1.2",
161161
"eslint-plugin-prettier": "^5.2.6",
162-
"eslint-plugin-unicorn": "^58.0.0",
162+
"eslint-plugin-unicorn": "^59.0.0",
163163
"eslint-plugin-vue": "^10.0.1",
164164
"fixturify": "^3.0.0",
165165
"flru": "^1.0.2",

src/finalisers/amd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function amd(
4343
const parameters = dependencies.map(m => m.name);
4444
const { n, getNonArrowFunctionIntro, _ } = snippets;
4545

46-
if (namedExportsMode && hasExports) {
46+
if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
4747
parameters.unshift(`exports`);
4848
deps.unshift(`'exports'`);
4949
}

src/finalisers/iife.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function iife(
6262
log(LOGLEVEL_WARN, logMissingNameOptionForIifeExport());
6363
}
6464

65-
if (namedExportsMode && hasExports) {
65+
if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
6666
if (extend) {
6767
deps.unshift(
6868
`this${keypath(name!, getPropertyAccess)}${_}=${_}this${keypath(

src/finalisers/umd.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ export default function umd(
8686
);
8787
const factoryParameters = trimmedImports.map(m => m.name);
8888

89-
if (namedExportsMode && (hasExports || noConflict)) {
89+
if (
90+
(hasExports || noConflict) &&
91+
(namedExportsMode || (hasExports && exports[0]?.local === 'exports.default'))
92+
) {
9093
amdDeps.unshift(`'exports'`);
9194
cjsDeps.unshift(`exports`);
9295
globalDeps.unshift(

0 commit comments

Comments
 (0)