-
-
Notifications
You must be signed in to change notification settings - Fork 758
feat: support MF share treeshake #12250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,484
−561
Merged
Changes from all commits
Commits
Show all changes
117 commits
Select commit
Hold shift + click to select a range
3c0a94e
feat: treeshake share
2heal1 e27a87e
fix(module-federation): correct shared module name and optimize tree …
2heal1 f7e6adf
feat(module-federation): add treeshakeSharedExcludedPlugins option
2heal1 4c2435c
chore: add watchRun
2heal1 617f522
fix(shared-modules): handle undefined moduleToHandlerMapping and prev…
2heal1 c976e7b
test(container-1-5): add ui-lib package for treeshake shared infer st…
2heal1 8a6a7d9
chore: merge main
2heal1 c38ded8
fix(shared_used_exports): handle scoped package names in shared exports
2heal1 22d591c
chore: update critical file
2heal1 c8f933e
feat(module-federation): add target and plugins to build info for tre…
2heal1 ae6c179
docs: update field
2heal1 226445c
feat: add treeshakeSharedPlugins
2heal1 a5ad101
chore: merge main
2heal1 13a91d6
Merge branch 'main' into feat/shared-treeshake
2heal1 32c765e
fix: lint
2heal1 ef4bc66
Merge branch 'main' into feat/shared-treeshake
2heal1 df14862
fix: lockfile
2heal1 cf4486a
fix: lint
2heal1 dcc9262
Merge branch 'main' into feat/shared-treeshake
2heal1 0043280
Merge branch 'main' into feat/shared-treeshake
2heal1 0e2d2c3
Merge branch 'main' into feat/shared-treeshake
2heal1 4659d99
Merge branch 'main' into feat/shared-treeshake
2heal1 2f52780
chore: rename config
2heal1 aa18a19
chore(deps): update patch npm dependencies (#12647)
renovate[bot] ece0fee
chore(deps): update patch crates (#12646)
renovate[bot] edce5bd
chore: run ci/eco-ci/eco-benchmark on v2 branch (#12650)
LingyuCoder 44a7564
fix: report error when access module_graph in loader (#12639)
hardfist 25a4021
feat(rstest): add preserveNewUrl option to keep new URL untouched (#1…
fi3ework d424733
fix(lint): enable @typescript-eslint/await-thenable rule (#12644)
tt-a1i 86634a0
refactor: afterCodeGeneration hook use read only compilation ref (#12…
stormslowly f4c7791
fix(lint): enable @typescript-eslint/require-await rule (#12664)
tt-a1i 9400b65
chore(deps): update github-actions (#12645)
renovate[bot] 4ecc5cb
fix(lint): enable @typescript-eslint/return-await rule (#12665)
tt-a1i 2221d14
Merge branch 'main' into feat/shared-treeshake
2heal1 ed4b6ed
refactor: make compilation readonly for runtimeModule hook (#12670)
hardfist 3b1926f
feat: add constructor name for JS runtime modules (#12673)
LingyuCoder 2feb455
fix: incremental rebuild no code generation entry panic (#12643)
jerrykingxyz 70ffab9
refactor: unify artifact clear logic (#12677)
hardfist 29642b2
refactor: use DerfOpt's take/replace assist artifact mutation (#12659)
stormslowly 219a773
feat: rspack_cacheable context expose project root (#12685)
jerrykingxyz 0d1d58f
feat: rspack_cacheable add portable path & portable string (#12688)
jerrykingxyz b81dfa2
fix: inlined export invalid syntax comment (#12681)
ahabhgk 6ee0d4b
feat: add `requireAlias` option to control require variable renaming …
LingyuCoder a4152c5
fix(test): flaky test due to calling toJSON while hot updating (#12694)
stormslowly df72860
feat: impl `sync_trace` for `logger` tracing layer (#12687)
CPunisher eb5635c
feat: add warning when requireAlias is disabled (#12700)
LingyuCoder b8e674b
refactor: rename tree shaking field name
2heal1 b21d2ec
revert: "feat: add warning when requireAlias is disabled" (#12702)
LingyuCoder ec24006
feat: use rspack-vue-loader to support Vue hot update (#12698)
9aoy d67ed4a
Merge branch 'main' into feat/shared-treeshake
2heal1 2fb1f1c
chore: update artificat
2heal1 31ce58a
chore: replace async processAssets hooks with sync versions
2heal1 d02192f
fix: `environments.importMetaDirnameAndFilename` not work (#12708)
chenjiahan 6256796
fix: dynamic entry panic when disable build cache (#12696)
SyMind a6892fe
fix(context-replacement): only apply changes when regex matches (#12657)
agneym 10daee7
Merge branch 'main' into feat/shared-treeshake
2heal1 cad7e7a
docs: add missed doc
2heal1 823686a
fix: remove ueless dep
2heal1 3d67873
chore: update lock file
2heal1 a47337b
fix(mf): handle missing chunk gracefully and improve expose chunk nam…
2heal1 368f367
fix(type): runtimeModule.source (#12713)
9aoy 26c87d7
chore: release 1.7.2 (#12710)
JSerFeng 0f1b1e4
chore(deps): update dependency @rspack/plugin-react-refresh to ^1.6.0…
renovate[bot] a10781f
chore(deps): update dependency @shikijs/transformers to ^3.21.0 (#12719)
renovate[bot] 0ddce9d
chore(deps): update patch crates (#12716)
renovate[bot] 16d8c63
Merge branch 'main' into feat/shared-treeshake
2heal1 36866ea
test: skip recover-from-error/delete-file in watchCases (#12726)
jerrykingxyz 25020fd
feat: support portable cache and disable by default (#12680)
jerrykingxyz 07d3664
fix: rename reShake to secondaryTreeShaking
2heal1 2760cc3
Merge branch 'main' into feat/shared-treeshake
2heal1 58d41d1
chore: update artificat
2heal1 63a410a
test: use Rstest projects to define tests (#12729)
9aoy 785c0f6
chore(deps): update patch npm dependencies (#12717)
renovate[bot] d9915de
refactor: move pass into separate folder and driven by run_passes (#1…
hardfist ad662bc
refactor(lazy-compilation): use POST request to transfer ids of acti…
stormslowly 0eb2ee3
refactor: move logger into pass and reorg some passes (#12742)
hardfist cd15818
chore(lint): bump @rslint/core to 0.2.0 and enable default-param-last…
fansenze 1138ed1
chore: merge main
2heal1 476c9a0
test: support filter test by absolute path (#12749)
9aoy ef467b4
refactor: use newtype for alias artifact (#12754)
hardfist cc18589
chore: bump `swc_core` from 54 to 55 (#12758)
CPunisher 8c8a402
refactor: move all artifacts together (#12755)
hardfist fe1e14c
chore: limit threads for codspeed benchmark (#12763)
CPunisher cfa49be
chore(deps): update dependency cspell to ^9.6.0 (#12768)
renovate[bot] 8f85030
chore(deps): update dependency emnapi to ^1.8.1 (#12769)
renovate[bot] 2f0bc17
chore(deps): update dependency memfs to v4.53.0 (#12770)
renovate[bot] 1dc4b72
refactor: use compilation readonly ref in codegen optimization hook (…
stormslowly 5b35090
fix(browser): update worker format and add e2e test (#12747)
CPunisher ce29185
fix: update shared global name
2heal1 467a44d
chore: merge main
2heal1 3282b3d
perf: reuse container plugin
2heal1 c6cabed
chore: merge main
2heal1 2a85e0a
chore: fix merge conflict
2heal1 0101b8a
chore: merge main
2heal1 1a9ec0d
Merge branch 'main' into feat/shared-treeshake
2heal1 fbf727b
chore: use official version and update docs
2heal1 9fbc69c
chore: fix cargo clippy
2heal1 d7c6a31
Merge branch 'main' into feat/shared-treeshake
2heal1 f71ce01
Merge branch 'main' into feat/shared-treeshake
2heal1 7ef330a
chore: bump
2heal1 132f049
chore: merge main
2heal1 a0e1c67
Merge branch 'main' into feat/shared-treeshake
2heal1 5ac3ca1
Merge branch 'main' into feat/shared-treeshake
2heal1 44fe169
workflow: revert ci
2heal1 eee0673
ci: add CodSpeed performance analysis action
2heal1 247bd99
chore: revert cacahe implementation
2heal1 2db5635
Merge branch 'main' into feat/shared-treeshake
2heal1 9de1210
chore: merge main
2heal1 d62d2a5
chore: use get_referenced_exports
2heal1 5742f68
Merge branch 'main' into feat/shared-treeshake
2heal1 0aa547b
chore: revert esm depnedency change
2heal1 f59d807
Merge branch 'main' into feat/shared-treeshake
2heal1 26185ce
chore: revert esm_import_specifier_dependency change
2heal1 615e164
Merge branch 'main' into feat/shared-treeshake
2heal1 e541b7a
Merge branch 'main' into feat/shared-treeshake
2heal1 b4e2ed3
Merge branch 'main' into feat/shared-treeshake
2heal1 b33c235
refactor(mf): simplify runtime module implementations
2heal1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is SharedContainerPlugin, can this merge into ContainerPlugin with an additional option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While both plugins share the underlying ContainerEntryDependency , I don't think they should be merged or reused at the plugin level due to their distinct responsibilities and configurations:
I believe reusing them at the Dependency level (as they currently do) is the correct level of abstraction.