Skip to content

feat(rust): support file option - #2565

Merged
hyfdev merged 1 commit into
mainfrom
11-03-feat_rust_support_file_option
Nov 3, 2024
Merged

hyfdev merged 1 commit into
mainfrom
11-03-feat_rust_support_file_option

Conversation

@hyfdev

@hyfdev hyfdev commented Nov 2, 2024

Copy link
Copy Markdown
Member

Description

hyfdev commented Nov 2, 2024 •

Copy link
Copy Markdown
Member Author

@github-actions

github-actions Bot commented Nov 2, 2024 •

Copy link
Copy Markdown
Contributor

Benchmarks Rust

  • target: main(a766624)
  • pr: 11-03-feat_rust_support_file_option(19a9ed4)
group                                                               pr                                     target
-----                                                               --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol                     1.00     59.8±0.93ms        ? ?/sec    1.09     65.0±3.16ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify              1.00     85.4±1.21ms        ? ?/sec    1.02     86.8±1.20ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify-sourcemap    1.00     99.3±1.02ms        ? ?/sec    1.02    101.2±1.42ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap           1.00     67.3±0.97ms        ? ?/sec    1.04     69.9±2.20ms        ? ?/sec
bundle/bundle@rome-ts                                               1.00    107.8±1.21ms        ? ?/sec    1.00    108.0±1.33ms        ? ?/sec
bundle/bundle@rome-ts-minify                                        1.00    211.0±3.17ms        ? ?/sec    1.00    211.4±2.15ms        ? ?/sec
bundle/bundle@rome-ts-minify-sourcemap                              1.00    251.8±5.68ms        ? ?/sec    1.01    253.1±5.07ms        ? ?/sec
bundle/bundle@rome-ts-sourcemap                                     1.00    121.5±0.91ms        ? ?/sec    1.00    121.6±1.11ms        ? ?/sec
bundle/bundle@threejs                                               1.00     37.0±1.86ms        ? ?/sec    1.00     37.1±1.17ms        ? ?/sec
bundle/bundle@threejs-minify                                        1.00     94.7±0.55ms        ? ?/sec    1.01     95.6±0.95ms        ? ?/sec
bundle/bundle@threejs-minify-sourcemap                              1.00    109.2±1.36ms        ? ?/sec    1.01    110.3±1.17ms        ? ?/sec
bundle/bundle@threejs-sourcemap                                     1.00     44.4±0.63ms        ? ?/sec    1.00     44.4±0.39ms        ? ?/sec
bundle/bundle@threejs10x                                            1.00    381.6±5.87ms        ? ?/sec    1.00    381.5±7.03ms        ? ?/sec
bundle/bundle@threejs10x-minify                                     1.00   1202.8±8.90ms        ? ?/sec    1.00   1202.5±7.01ms        ? ?/sec
bundle/bundle@threejs10x-minify-sourcemap                           1.00  1429.9±10.33ms        ? ?/sec    1.01  1442.5±11.86ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                                  1.00    442.0±5.31ms        ? ?/sec    1.00    441.8±3.88ms        ? ?/sec
remapping/remapping                                                 1.00     28.2±0.29ms        ? ?/sec    1.01     28.6±0.29ms        ? ?/sec
remapping/render-chunk-remapping                                    1.01     69.0±0.75ms        ? ?/sec    1.00     68.5±0.31ms        ? ?/sec
scan/scan@rome-ts                                                   1.02     86.7±0.94ms        ? ?/sec    1.00     85.3±0.77ms        ? ?/sec
scan/scan@threejs                                                   1.02     27.3±1.35ms        ? ?/sec    1.00     26.8±0.20ms        ? ?/sec
scan/scan@threejs10x                                                1.01    280.3±5.05ms        ? ?/sec    1.00    278.2±4.43ms        ? ?/sec

@IWANABETHATGUY

Copy link
Copy Markdown
Member

Since there is no context in your context, I assume the file corresponds to outfile in esbuild, any reason we don't align with esbuild ?

@IWANABETHATGUY

Copy link
Copy Markdown
Member

Since there is no context in your context, I assume the file corresponds to outfile in esbuild, any reason we don't align with esbuild ?

probably you mean output.file in rollup, that make sense.

@hyfdev
hyfdev force-pushed the 11-03-feat_rust_support_file_option branch from 88a47ac to 7858c8e Compare November 3, 2024 09:19
@hyfdev

hyfdev commented Nov 3, 2024 •

Copy link
Copy Markdown
Member Author

Since there is no context in your context, I assume the file corresponds to outfile in esbuild, any reason we don't align with esbuild ?

Yeah. This is a tricky part. outfile is a more proper name. I was gonna use it in the first place. But using this name would cause the throwing error use the outfile too. It would be confusing, if we throw such error to node side.

I have some rough ideas on solving this problem, but it's too early to say.

@hyfdev
hyfdev force-pushed the 11-03-refactor_rust_make_js_and_css_chunk_have_their_own_unique_names branch from b9ba44d to a3d9d73 Compare November 3, 2024 09:58
@hyfdev
hyfdev force-pushed the 11-03-feat_rust_support_file_option branch from 7858c8e to 39ba746 Compare November 3, 2024 09:58
Base automatically changed from 11-03-refactor_rust_make_js_and_css_chunk_have_their_own_unique_names to main November 3, 2024 10:21
@hyfdev
hyfdev force-pushed the 11-03-feat_rust_support_file_option branch from 39ba746 to 19a9ed4 Compare November 3, 2024 10:21

hyfdev commented Nov 3, 2024

Copy link
Copy Markdown
Member Author

Merge activity

  • Nov 3, 5:22 AM EST: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.

@netlify

netlify Bot commented Nov 3, 2024

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 19a9ed4
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/67274ec8647e3d0008b53add

@hyfdev
hyfdev added this pull request to the merge queue Nov 3, 2024
Merged via the queue into main with commit cda7c35 Nov 3, 2024
@hyfdev
hyfdev deleted the 11-03-feat_rust_support_file_option branch November 3, 2024 10:52
graphite-app Bot pushed a commit that referenced this pull request Jul 27, 2026
### Description

Remove `crates/rolldown/tests/rolldown/function/file/.dynamic_import/`.

It is not useful coverage:

- Dot-prefixed → `#[ignore]`, so CI never runs it.
- `"file": "out.js"` has no directory part, so the harness cleans the fixture folder itself on any local run.
- It was meant for multi-chunk + `output.file` (#2565), but the sources never exercise that path. That rule is already covered by `errors/invalid_option/invalid-output-file/`.
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