Skip to content

Comments

fix: dynamic import does not return exports when preserveEntrySignatures: false is set and the importee is an entry#4891

Merged
IWANABETHATGUY merged 1 commit intomainfrom
06-10-fix_4880
Jun 10, 2025
Merged

fix: dynamic import does not return exports when preserveEntrySignatures: false is set and the importee is an entry#4891
IWANABETHATGUY merged 1 commit intomainfrom
06-10-fix_4880

Conversation

@IWANABETHATGUY
Copy link
Member

@IWANABETHATGUY IWANABETHATGUY commented Jun 10, 2025

Closed #4880

Copy link
Member Author

@IWANABETHATGUY IWANABETHATGUY changed the title fix: 4880 fix: dynamic import does not return exports when preserveEntrySignatures: false is set and the importee is an entry Jun 10, 2025
@IWANABETHATGUY IWANABETHATGUY marked this pull request as ready for review June 10, 2025 05:42
@netlify
Copy link

netlify bot commented Jun 10, 2025

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit ebbed1e
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6847c6cd22c2540008c82214

Copy link
Member

@hyf0 hyf0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads-up, this thing is around me for a long time. A entry could be both a user-defined entry and a dynamic entry.

I used to want to refactor the current structure to allow to express a entry could be both user-defined and dynamic.

However, I don't see any issue caused by it, so I didn't do it.

Not sure if it relates to this PR, just share something I know.

@IWANABETHATGUY
Copy link
Member Author

Just a heads-up, this thing is around me for a long time. A entry could be both a user-defined entry and a dynamic entry.

I used to want to refactor the current structure to allow to express a entry could be both user-defined and dynamic.

However, I don't see any issue caused by it, so I didn't do it.

Not sure if it relates to this PR, just share something I know.

Yeah, the concept indeed error-prone sometimes.

@IWANABETHATGUY IWANABETHATGUY added this pull request to the merge queue Jun 10, 2025
@github-actions
Copy link
Contributor

Benchmarks Rust

group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.10     79.9±2.91ms        ? ?/sec    1.00     72.9±1.43ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.12     93.5±1.61ms        ? ?/sec    1.00     83.7±1.38ms        ? ?/sec
bundle/bundle@rome_ts                                        1.06    118.9±3.49ms        ? ?/sec    1.00    111.8±1.35ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.05    133.7±2.16ms        ? ?/sec    1.00    127.2±2.74ms        ? ?/sec
bundle/bundle@threejs                                        1.09     43.9±2.34ms        ? ?/sec    1.00     40.2±0.70ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.04     48.0±0.84ms        ? ?/sec    1.00     46.3±0.56ms        ? ?/sec
bundle/bundle@threejs10x                                     1.05    452.1±4.96ms        ? ?/sec    1.00    431.4±5.50ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.05    527.4±4.33ms        ? ?/sec    1.00    502.8±7.02ms        ? ?/sec
scan/scan@rome_ts                                            1.06     94.0±2.21ms        ? ?/sec    1.00     88.7±1.75ms        ? ?/sec
scan/scan@threejs                                            1.07     32.8±0.53ms        ? ?/sec    1.00     30.6±1.74ms        ? ?/sec
scan/scan@threejs10x                                         1.02    325.6±6.33ms        ? ?/sec    1.00    318.4±5.61ms        ? ?/sec

Merged via the queue into main with commit f77dae0 Jun 10, 2025
23 checks passed
@IWANABETHATGUY IWANABETHATGUY deleted the 06-10-fix_4880 branch June 10, 2025 06:10
github-merge-queue bot pushed a commit that referenced this pull request Jun 10, 2025
Boshen pushed a commit that referenced this pull request Jun 10, 2025
## [1.0.0-beta.14] - 2025-06-10

### 💥 BREAKING CHANGES

- refactor!: move preserveEntrySignatures from output to input options
by @IWANABETHATGUY in
[#4871](#4871)

### 🚀 Features

- feat(strictExecutionOrder): no need to generate plain chunk imports
for addressing side effects by @hyf0 in
[#4890](#4890)
- feat: make wasm fallback plugin callable in node by @shulaoda in
[#4885](#4885)
- feat(rolldown_plugin_module_preload_polyfill): align with
`rolldown-vite` by @shulaoda in
[#4884](#4884)
- feat(attachDebugInfo): improve format and distinguish dynamic entries
by @hyf0 in [#4861](#4861)

### 🐛 Bug Fixes

- fix(binding): preserveModules infinity loop by @Brooooooklyn in
[#4879](#4879)
- fix: dynamic import does not return exports when
preserveEntrySignatures: false is set and the importee is an entry by
@IWANABETHATGUY in
[#4891](#4891)
- fix: preserveEntrySignatures panics with an edge case by
@IWANABETHATGUY in
[#4877](#4877)
- fix: directives are missing with `preserveModules` by @IWANABETHATGUY
in [#4876](#4876)
- fix: exports from dynamically imported chunks are removed by
@IWANABETHATGUY in
[#4875](#4875)

### 🚜 Refactor

- refactor: clearify Chunk entry kind by @IWANABETHATGUY in
[#4892](#4892)
- refactor(rolldown_plugin_build_import_analysis): align the logic with
`rolldown-vite` by @shulaoda in
[#4856](#4856)

### 📚 Documentation

- docs(contrib-guide): add HMR testing section by @sapphi-red in
[#4888](#4888)
- docs(guide): update release channels - remove nightly, add pkg.pr.new
by @Boshen in [#4881](#4881)

### 🧪 Testing

- test: rename `rolldown/topics/hmr/mutiply-entires` to snake case by
@sapphi-red in [#4889](#4889)
- test: add test for #4849 by @sapphi-red in
[#4887](#4887)
- test: setup infra for hmr tests by @sapphi-red in
[#4886](#4886)

### ⚙️ Miscellaneous Tasks

- ci: disable publish to nightly by @Boshen in
[#4874](#4874)
- ci: extend Vite tests timeout by @sapphi-red in
[#4870](#4870)
- fix publish-to-npm.yml by @Boshen

### ◀️ Revert

- revert: "refactor(rolldown_plugin_load_fallback): align with
rolldown-vite" by @shulaoda in
[#4868](#4868)

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.

[Bug]: dynamic import does not return exports when preserveEntrySignatures: false is set and the importee is an entry

2 participants