Repository navigation
fix(browser): default cwd to / - #11554
Merged
Merged
Conversation
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Brooooooklyn
marked this pull request as ready for review
November 8, 2026 04:59
Brooooooklyn
requested review from
IWANABETHATGUY,
hyfdev and
shulaoda
as code owners
November 8, 2026 04:59
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
cwd to /
Member
|
I rewrote the title and description. |
hyfdev
approved these changes
Nov 9, 2026
Merged
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In a browser,
@rolldown/browserthrewReferenceError: process is not definedfromgenerate()andwrite()when nocwdwas given.It now defaults
cwdto/there, the root of the in-memory file system the browser build reads.The default came from
process.cwd(), which a browser page does not have.The Node build keeps
process.cwd().esbuild-wasm's browser API uses the same default for
absWorkingDir.The browser smoke test omits
cwd, so it covers the default.