Skip to content

chore: update hmr-poc#3

Draft
hi-ogawa wants to merge 45 commits into
mainfrom
hmr-poc-merge
Draft

chore: update hmr-poc#3
hi-ogawa wants to merge 45 commits into
mainfrom
hmr-poc-merge

Conversation

@hi-ogawa
Copy link
Copy Markdown
Owner

@hi-ogawa hi-ogawa commented Nov 28, 2024

Updating to current main so that I can also rebase rolldown/vite vitejs/rolldown-vite#66

<!-- Thank you for contributing! -->

Add `hmr_rebuild(changed_file)` to using as hmr rebuild API. Here maybe
could need to return String, we could mutate it at future.

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
…e loader (rolldown#2142)

<!-- Thank you for contributing! -->

Here create new `HmrModuleLoader` to scan modules which imported from
changed modules. The `changed modules` will direct spawn new task using
previous module id.

The `HmrIntermediateNormalModules` comes from the previous module info,
so here we could to re-using more logic from `ModuleLoader`.

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
…#2150)

<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
…lldown#2156)

<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
…mple run (rolldown#2159)

<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
…olldown#2184)

<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
…ldown#2232)

<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

Run example.

1. run `just setup` to setup project.
2. build rolldown, run `just build` at project root.
3. run `npm run build` at `examples/react-hmr`.

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
…wn#2259)

<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
underfin and others added 5 commits November 5, 2024 11:46
<!-- Thank you for contributing! -->

Run example.

1. run `just setup` to setup project.
2. build rolldown, run `just build` at project root.
3. run `npm run build` at `examples/vue-hmr`.

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 28, 2024

Benchmarks Rust

group                                                               pr                                     target
-----                                                               --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol                     1.01     82.9±3.59ms        ? ?/sec    1.00     82.1±1.78ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify              1.00    107.8±3.37ms        ? ?/sec    1.02    109.9±3.20ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify-sourcemap    1.00    121.0±3.69ms        ? ?/sec    1.03    125.0±2.25ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap           1.00     89.4±2.55ms        ? ?/sec    1.00     89.4±1.28ms        ? ?/sec
bundle/bundle@rome-ts                                               1.00    132.6±3.90ms        ? ?/sec    1.02    135.3±2.91ms        ? ?/sec
bundle/bundle@rome-ts-minify                                        1.02   261.3±17.61ms        ? ?/sec    1.00   255.3±10.97ms        ? ?/sec
bundle/bundle@rome-ts-minify-sourcemap                              1.00   291.0±15.58ms        ? ?/sec    1.00   291.9±18.64ms        ? ?/sec
bundle/bundle@rome-ts-sourcemap                                     1.01    147.3±3.59ms        ? ?/sec    1.00    146.5±3.08ms        ? ?/sec
bundle/bundle@threejs                                               1.02     39.6±1.53ms        ? ?/sec    1.00     38.9±1.14ms        ? ?/sec
bundle/bundle@threejs-minify                                        1.02    101.9±2.82ms        ? ?/sec    1.00     99.9±2.58ms        ? ?/sec
bundle/bundle@threejs-minify-sourcemap                              1.00    117.7±3.30ms        ? ?/sec    1.03    121.0±4.65ms        ? ?/sec
bundle/bundle@threejs-sourcemap                                     1.00     51.2±2.95ms        ? ?/sec    1.00     51.0±2.84ms        ? ?/sec
bundle/bundle@threejs10x                                            1.00    417.1±7.19ms        ? ?/sec    1.00    417.9±8.52ms        ? ?/sec
bundle/bundle@threejs10x-minify                                     1.00  1291.4±16.64ms        ? ?/sec    1.01  1298.1±15.18ms        ? ?/sec
bundle/bundle@threejs10x-minify-sourcemap                           1.00  1510.4±13.88ms        ? ?/sec    1.01  1520.4±18.81ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                                  1.00    491.6±6.45ms        ? ?/sec    1.01    496.1±7.96ms        ? ?/sec
remapping/remapping                                                 1.01     28.9±0.18ms        ? ?/sec    1.00     28.6±0.20ms        ? ?/sec
remapping/render-chunk-remapping                                    1.00     75.3±0.39ms        ? ?/sec    1.01     76.3±0.36ms        ? ?/sec
scan/scan@rome-ts                                                   1.02    108.7±1.77ms        ? ?/sec    1.00    106.5±2.68ms        ? ?/sec
scan/scan@threejs                                                   1.01     30.2±0.89ms        ? ?/sec    1.00     29.9±0.52ms        ? ?/sec
scan/scan@threejs10x                                                1.01    303.7±5.35ms        ? ?/sec    1.00    299.4±4.93ms        ? ?/sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants