Skip to content

Comments

feat(rolldown): oxc-resolver v11.5.0 (yarn pnp)#5147

Merged
Boshen merged 1 commit intomainfrom
pnp
Jul 6, 2025
Merged

feat(rolldown): oxc-resolver v11.5.0 (yarn pnp)#5147
Boshen merged 1 commit intomainfrom
pnp

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Jul 2, 2025

Yarn Plug'n'Play

  • For node.js, yarn pnp should work without any configuration, given the following conditions:
    • the program is called with the yarn command, where the value process.versions.pnp is set.
    • .pnp.cjs manifest file exists in the closest directory, searched from the current working directory,
    • no multi-project setup, per second bullet point in FIND_PNP_MANIFEST

@netlify
Copy link

netlify bot commented Jul 2, 2025

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit bf0ec38
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/686a29d2d1a28d0008a600fe
😎 Deploy Preview https://deploy-preview-5147--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@Boshen
Copy link
Member Author

Boshen commented Jul 2, 2025

It feels like I'm missing a bunch of glue code, @shulaoda can you help me complete this PR?

I'm reluctant to add a integration test because that would require a whole yarn pnp setup. Perhaps just a test case for enabling the option and test for an error thrown by the resolver?

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2025

Benchmarks Rust

group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.00     74.5±1.44ms        ? ?/sec    1.01     75.3±1.97ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.00     85.7±1.54ms        ? ?/sec    1.00     85.6±1.83ms        ? ?/sec
bundle/bundle@rome_ts                                        1.00    113.3±3.24ms        ? ?/sec    1.01    113.9±1.69ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.01    133.9±3.04ms        ? ?/sec    1.00    133.0±1.64ms        ? ?/sec
bundle/bundle@threejs                                        1.00     40.8±1.56ms        ? ?/sec    1.01     41.1±0.93ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.00     50.6±1.03ms        ? ?/sec    1.00     50.6±0.77ms        ? ?/sec
bundle/bundle@threejs10x                                     1.01    436.7±5.05ms        ? ?/sec    1.00    432.8±4.46ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.01    508.6±3.89ms        ? ?/sec    1.00    505.5±5.46ms        ? ?/sec
scan/scan@rome_ts                                            1.00     88.3±1.45ms        ? ?/sec    1.00     88.5±1.64ms        ? ?/sec
scan/scan@threejs                                            1.01     30.6±0.38ms        ? ?/sec    1.00     30.3±0.74ms        ? ?/sec
scan/scan@threejs10x                                         1.00    322.7±3.86ms        ? ?/sec    1.00    322.2±4.96ms        ? ?/sec

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 3, 2025

CodSpeed Performance Report

Merging #5147 will not alter performance

Comparing pnp (bf0ec38) with main (bd52513)

Summary

✅ 8 untouched benchmarks

@Boshen
Copy link
Member Author

Boshen commented Jul 3, 2025

Things aren't working as expected, patching it oxc-resolver:

@socket-security
Copy link

socket-security bot commented Jul 3, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedis-even@​1.0.01001008378100
Addedis-odd@​0.1.21001008178100
Addedkind-of@​3.2.210010010079100
Addedis-number@​3.0.01001009780100

View full report

@Boshen Boshen force-pushed the pnp branch 2 times, most recently from a4b34a1 to e92df61 Compare July 6, 2025 07:42
@Boshen Boshen changed the title feat(rolldown): oxc-resolver v11.4.0 (yarn pnp) feat(rolldown): oxc-resolver v11.5.0 (yarn pnp) Jul 6, 2025
@Boshen Boshen marked this pull request as ready for review July 6, 2025 07:46
@Boshen Boshen added this pull request to the merge queue Jul 6, 2025
Merged via the queue into main with commit c142a18 Jul 6, 2025
25 checks passed
@Boshen Boshen deleted the pnp branch July 6, 2025 08:08
IWANABETHATGUY pushed a commit that referenced this pull request Jul 10, 2025
## [1.0.0-beta.25] - 2025-07-10

### 🚀 Features

- hmr: should initialize cjs with correct initializer (#5234) by @hyf0
- hmr: handle `import(..)` on cjs modules (#5225) by @hyf0
- support `chunkModulesOrder`  (#5227) by @IWANABETHATGUY
- add `export`s to `rolldown:runtime` (#5224) by @hyf0
- hmr: support `import(..)` (#5223) by @hyf0
- add analyzed source code side effects field in ecmaMeta (#5226) by
@IWANABETHATGUY
- hmr: return `undefined` from `generateHmrPatch` when there is no patch
(#5218) by @sapphi-red
- pass `isEntry` to resolveId hook of CallableBuiltinPlugin (#5215) by
@sapphi-red
- pass `isEntry` from `this.resolve` (#5214) by @sapphi-red
- node: support `OutputOptions#minifyInternalExports` (#5210) by @hyf0
- rolldown: oxc v0.76.0 (#5212) by @Boshen
- rust: support `minify_internal_exports` (#5208) by @hyf0
- support opt-in `topLevelVar` (#5188) by @7086cmd
- rolldown: oxc-resolver v11.5.0 (yarn pnp) (#5147) by @Boshen

### 🐛 Bug Fixes

- do not optimize interop code for `mod.default` if mod bind from
default import (#5232) by @IWANABETHATGUY
- return `moduleSideEffects` instead of `sideEffects` from callable
plugins (#5206) by @sapphi-red
- return `moduleSideEffects` set by native plugins from `this.resolve`
(#5205) by @sapphi-red
- incorrect output when importing CJS package (#5201) by @IWANABETHATGUY
- use resolved id instead of module_request when analysis if a module is
a json module (#5200) by @IWANABETHATGUY

### 🚜 Refactor

- use `sort_unstable_by_key` for simple property access (#5233) by
@IWANABETHATGUY
- add Deref impl for TransformPluginContext to access PluginContext
(#5221) by @sapphi-red
- use `BindingHookSideEffects` in CallableBuiltinPlugin (#5204) by
@sapphi-red
- move side effects type bindings logic to rust side (#5203) by
@sapphi-red
- test: improve experience of writing manual integration test (#5186) by
@hyf0
- rust: unify logic of `IntegrationTest` (#5185) by @hyf0

### 🧪 Testing

- rust: automatically run extented test for `minify_internal_exports:
true` (#5213) by @hyf0
- rust: add basic tests for minifying internal exports (#5211) by @hyf0

### ⚙️ Miscellaneous Tasks

- deps: oxc-browserslist v2.0.10 and oxc-resolver v11.5.2 (#5222) by
@Boshen
- use jsonc schema for knip config (#5207) by @sapphi-red
- rust: remove unused code related to
`safe_cjs_to_eliminate_interop_default` (#5202) by @shulaoda
- inject test variant name to rust unit test script (#5195) by
@IWANABETHATGUY
- change CC => TARGET_CC (#5194) by @Brooooooklyn
- deps: lock file maintenance npm packages (#5191) by @renovate[bot]
- deps: lock file maintenance (#5193) by @renovate[bot]
- deps: lock file maintenance rust crates (#5192) by @renovate[bot]
- deps: update github-actions (#5190) by @renovate[bot]
- test: remove unnecessary test snapshots (#5183) by @shulaoda
- rolldown: upgrade to NAPI-RS 3.0.0-beta.12 (#5184) by @Brooooooklyn

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants