Skip to content

test(dev): add exports assignment test - #5654

Merged
graphite-app[bot] merged 1 commit into
mainfrom
08-07-test_hmr_add_exports_assignment_test
Nov 10, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
08-07-test_hmr_add_exports_assignment_test

Conversation

@sapphi-red

@sapphi-red sapphi-red commented Aug 7, 2025 •

Copy link
Copy Markdown
Member

Add a test for the case where exports is assigned in CJS files.

sapphi-red commented Aug 7, 2025 •

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@netlify

netlify Bot commented Aug 7, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 15d87db
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/68aff406483ab400088bd54a

@sapphi-red
sapphi-red force-pushed the 08-07-test_hmr_add_exports_assignment_test branch from 41fb802 to 15d87db Compare August 28, 2025 06:15
@hyfdev

hyfdev commented Nov 9, 2026

Copy link
Copy Markdown
Member

This draft hasn't moved in a while.

Could you check whether it can be closed?

@sapphi-red
sapphi-red force-pushed the 08-07-test_hmr_add_exports_assignment_test branch from 15d87db to d6618c9 Compare November 9, 2026 04:09
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://08-07-test-hmr-add-exports-assignment-test-rolldown-rs.voidzero-docs.workers.dev (commit 66cefe1)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://16ed988d-rolldown-rs.voidzero-docs.workers.dev 66cefe1 2026-11-10T11:43:39.234Z Visit the dashboard ↗
  • Build: Failed ❌

View logs ↗
2bb55c6 2026-11-10T09:46:30.810Z View logs ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://940e0732-rolldown-rs.voidzero-docs.workers.dev 1c85c29 2026-11-09T04:38:06.674Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://fc14e3f6-rolldown-rs.voidzero-docs.workers.dev e9ab620 2026-11-09T04:25:01.051Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://d6026735-rolldown-rs.voidzero-docs.workers.dev c010a19 2026-11-09T04:12:12.361Z Visit the dashboard ↗
  • Build: In progress 🔵

View logs ↗
d6618c9 2026-11-09T04:09:26.471Z View logs ↗

@netlify

netlify Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 66cefe1
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6af302fe53f28ed46b14e907
😎 Deploy Preview https://deploy-preview-5654--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sapphi-red
sapphi-red force-pushed the 08-07-test_hmr_add_exports_assignment_test branch 2 times, most recently from e9ab620 to 1c85c29 Compare November 9, 2026 04:35
@sapphi-red sapphi-red changed the title test(hmr): add exports assignment test test(dev): add exports assignment test Nov 9, 2026
@sapphi-red sapphi-red added scope: dev Related to dev mode scope: tests labels Nov 9, 2026
@sapphi-red
sapphi-red marked this pull request as ready for review November 9, 2026 04:43
@hyfdev

hyfdev commented Nov 10, 2026

Copy link
Copy Markdown
Member

The new module isn't in the propagation chain, so the HMR patch doesn't include it and the test only covers the initial build.

Adding import 'trigger-dep';, like the other files in cases/require, puts its factory in the patch, and the test still passes.

Could you add it?

@sapphi-red
sapphi-red force-pushed the 08-07-test_hmr_add_exports_assignment_test branch from 1c85c29 to 2bb55c6 Compare November 10, 2026 09:43

sapphi-red commented Nov 10, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

  • Nov 10, 11:41 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 10, 11:41 AM UTC: sapphi-red added this pull request to the Graphite merge queue.
  • Nov 10, 11:49 AM UTC: Merged by the Graphite merge queue.

Add a test for the case where `exports` is assigned in CJS files.
@graphite-app
graphite-app Bot force-pushed the 08-07-test_hmr_add_exports_assignment_test branch from 2bb55c6 to 66cefe1 Compare November 10, 2026 11:41
@graphite-app
graphite-app Bot merged commit 66cefe1 into main Nov 10, 2026
36 checks passed
@graphite-app
graphite-app Bot deleted the 08-07-test_hmr_add_exports_assignment_test branch November 10, 2026 11:49
@rolldown-guard rolldown-guard Bot mentioned this pull request Nov 11, 2026
shulaoda added a commit that referenced this pull request Nov 11, 2026
## [1.3.2] - 2026-11-11

### 🚀 Features

- magic-string: add a `hires` constructor option (#11643) by @IWANABETHATGUY
- cjs: provide `__dirname` and `__filename` to CommonJS modules in Node ESM output (#10680) by @irvinebroque

### 🐛 Bug Fixes

- strict-execution-order: place re-export targets that no consumer selects (#11634) by @hyfdev
- sourcemap: use the `map` a hook returns with the native MagicString (#11642) by @IWANABETHATGUY
- drop no-op init calls from re-exports and imports (#11632) by @hyfdev
- detect `__esModule` set with `Object.defineProperty(module.exports, ...)` (#11622) by @agarwalla-chirag
- hoist `var` in top-level catch blocks of wrapped modules (#11626) by @hyfdev
- detect top-level `await` in top-level `catch` blocks (#11640) by @hyfdev
- sourcemap: keep columns when a hook returns the native MagicString (#11628) by @anonrig
- make a module without module syntax CommonJS when it is both imported and required (#11633) by @hyfdev
- drop references in dead branches inside live functions before chunk linking (#11059) by @elliott-with-the-longest-name-on-github
- make cross-chunk export names independent of module load order (#10882) by @danieljvdm
- don't treat new URL() references as execution dependencies (#11605) by @shuvroroy
- stop the options passed to hooks from keeping a build's plugins alive (#11623) by @Brooooooklyn
- strict-execution-order: run the declaring module of an inlined constant read through a kept barrel (#11546) by @hyfdev
- hoist `var` in top-level for-in and for-of heads of wrapped modules (#11620) by @hyfdev
- rollup-tests: fail the test case on assertion error in `renderError` (#11621) by @sapphi-red
- preserve rendering errors when `renderError` fails (#11614) by @sapphi-red
- count emitted chunks when rendering relative-path externals (#11611) by @hyfdev
- avoid panic on `{ b: [y = 1] }` destructuring in a wrapped module (#11563) by @IWANABETHATGUY
- treeshaking: tree-shake statements with `instanceof` that a constant makes pure (#11610) by @hyfdev
- dev: don't panic when a partial rebuild adds a relative-path external (#11604) by @hyfdev
- rolldown: fail the build instead of hanging when a module task panics (#11562) by @Brooooooklyn
- rolldown: don't panic in module tasks after the build is dropped (#11557) by @Brooooooklyn
- browser: default `cwd` to `/` (#11554) by @Brooooooklyn

### 🚜 Refactor

- use `.agents/skills` for skill files (#11627) by @camc314

### 📚 Documentation

- perf-kit: show the build config on the page (#11646) by @IWANABETHATGUY

### ⚡ Performance

- trace sequential sourcemap tokens with a bounded cursor (#11545) by @Dunqing
- use raw tokens when collapsing sourcemaps (#11524) by @Dunqing
- magic-string: free the index table of a MagicString returned from transform (#11558) by @Brooooooklyn

### 🧪 Testing

- dev: add exports assignment test (#5654) by @sapphi-red
- rollup-tests: normalize Rollup Error for renderError (#11613) by @sapphi-red
- rolldown: cover async render hooks (#11560) by @Brooooooklyn
- watch: cover the native backend and fix the watch-error CLI test race (#11559) by @Brooooooklyn

### ⚙️ Miscellaneous Tasks

- deps: update dependency vitepress-plugin-group-icons to v1.8.2 (#11647) by @jong-kyung
- deps: update dependency vite-plus to v1.6.0 (#11641) by @renovate[bot]
- skip upstream-only workflows on forks (#11644) by @jong-kyung
- deps: update napi to v3.16.2 (#11639) by @renovate[bot]
- deps: update rollup submodule for tests to v4.68.2 (#11608) by @rolldown-guard[bot]
- rollup-tests: retriage failed tests (#11615) by @sapphi-red
- deps: update test262 submodule for tests (#11609) by @rolldown-guard[bot]
- deps: update npm packages (#11572) by @renovate[bot]
- docs: always use https (#11606) by @TheAlexLichter
- deps: update dependency vite-plus to v1.5.1 (#11591) by @renovate[bot]
- stop building `better-sqlite3` on install (#11602) by @hyfdev
- deps: upgrade oxc to 0.158.0 (#11601) by @camc314
- deps: update dependency rolldown-plugin-dts to ^0.30.0 (#11588) by @renovate[bot]
- deps: update crate-ci/typos action to v1.52.0 (#11590) by @renovate[bot]

### ❤️ New Contributors

* @jong-kyung made their first contribution in [#11647](#11647)
* @irvinebroque made their first contribution in [#10680](#10680)
* @agarwalla-chirag made their first contribution in [#11622](#11622)
* @danieljvdm made their first contribution in [#10882](#10882)

Co-authored-by: shulaoda <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: dev Related to dev mode scope: tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants