Skip to content

Comments

feat: add commonjs tree shake option#5096

Merged
IWANABETHATGUY merged 1 commit intomainfrom
06-29-feat_add_commonjs_tree_shake_option
Jun 29, 2025
Merged

feat: add commonjs tree shake option#5096
IWANABETHATGUY merged 1 commit intomainfrom
06-29-feat_add_commonjs_tree_shake_option

Conversation

@IWANABETHATGUY
Copy link
Member

No description provided.

Copy link
Member Author

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

@netlify
Copy link

netlify bot commented Jun 29, 2025

Deploy Preview for rolldown-rs failed.

Name Link
🔨 Latest commit 4667e40
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6860fa740dcd41000896cde9

@IWANABETHATGUY IWANABETHATGUY marked this pull request as ready for review June 29, 2025 08:37
@github-actions
Copy link
Contributor

Benchmarks Rust

  • target: main(24cd70d)
  • pr: 06-29-feat_add_commonjs_tree_shake_option(4667e40)
group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.01     77.0±1.69ms        ? ?/sec    1.00     76.2±1.51ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.00     87.6±1.61ms        ? ?/sec    1.00     87.7±1.54ms        ? ?/sec
bundle/bundle@rome_ts                                        1.02    116.0±7.02ms        ? ?/sec    1.00    113.4±1.71ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.00    133.0±1.98ms        ? ?/sec    1.01    133.9±1.93ms        ? ?/sec
bundle/bundle@threejs                                        1.00     40.8±2.07ms        ? ?/sec    1.01     41.1±0.73ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.00     51.0±1.40ms        ? ?/sec    1.00     51.1±0.66ms        ? ?/sec
bundle/bundle@threejs10x                                     1.00    440.8±5.38ms        ? ?/sec    1.01    444.2±5.67ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.00    514.4±3.75ms        ? ?/sec    1.00    515.6±6.69ms        ? ?/sec
scan/scan@rome_ts                                            1.02     91.6±1.94ms        ? ?/sec    1.00     90.3±1.57ms        ? ?/sec
scan/scan@threejs                                            1.01     31.5±1.67ms        ? ?/sec    1.00     31.3±1.93ms        ? ?/sec
scan/scan@threejs10x                                         1.01    327.5±3.98ms        ? ?/sec    1.00    323.0±4.55ms        ? ?/sec

@IWANABETHATGUY IWANABETHATGUY added this pull request to the merge queue Jun 29, 2025
Merged via the queue into main with commit f6415bb Jun 29, 2025
20 of 24 checks passed
@IWANABETHATGUY IWANABETHATGUY deleted the 06-29-feat_add_commonjs_tree_shake_option branch June 29, 2025 09:00
Boshen pushed a commit that referenced this pull request Jun 30, 2025
## [1.0.0-beta.22] - 2025-06-30

### 🚀 Features

- plugin: use `Log` instead of `BuildDiagnostic` for `PluginContext#log` (#5099) by @shulaoda
- plugin: support info/warn/debug in native plugin context (#5098) by @shulaoda
- plugin: support vite plugin custom in `PluginContext#resolve` (#5097) by @shulaoda
- rolldown_plugin_import_glob: align edge cases with `rolldown-vite` (#5094) by @shulaoda
- rolldown_plugin_vite_resolve: align subpath import resolution (#5093) by @shulaoda
- add commonjs tree shake option (#5096) by @IWANABETHATGUY
- rolldown_plugin_web_worker_post: align with `rolldown-vite` (#5092) by @shulaoda
- manual-chunks: support `getModuleInfo` (#5087) by @hyf0
- advanced-chunks: support `getModuleInfo` in `groups.{group}.name` (#5086) by @hyf0

### 🚜 Refactor

- rolldown_loader_utils: inline unnecessary `binary_to_esm` (#5100) by @shulaoda

### ⚡ Performance

- hmr: remove `console.debug` in `runtime.registerModule` (#5091) by @sapphi-red
- hmr: remove no-op `runtime.__toCommonJS` call (#5089) by @sapphi-red

### ⚙️ Miscellaneous Tasks

- deps: lock file maintenance rust crates (#5105) by @renovate[bot]
- deps: lock file maintenance npm packages (#5104) by @renovate[bot]
- deps: update rust crate schemars to v1 (#5103) by @renovate[bot]
- deps: update dependency vite to v7 (#5102) by @renovate[bot]
- deps: update github-actions (#5101) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.13.12 (#5088) by @renovate[bot]
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.

2 participants