Avatar for the web-infra-dev user
web-infra-dev
rspack
BlogDocsChangelog

Swc macro

#10920
Comparing
swc-macro
(
b92f020
) with
main
(
ae33a2a
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
17
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

js@Traverse module graph by dependencies
tests/bench/ts-react.bench.ts::TypeScript React project::js@Traverse module graph by dependencies
CodSpeed Performance Gauge
+1%
572.4 µs
568.7 µs
js@Traverse module graph by connections
tests/bench/ts-react.bench.ts::TypeScript React project::js@Traverse module graph by connections
CodSpeed Performance Gauge
+1%
283.2 µs
281.7 µs
bundle@threejs-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle::bundle@threejs-production-sourcemap
CodSpeed Performance Gauge
0%
2.3 s
2.3 s
js@record chunk group
tests/bench/ts-react.bench.ts::TypeScript React project::js@record chunk group
CodSpeed Performance Gauge
0%
82.5 µs
82.4 µs
js@stats.toJson()
tests/bench/ts-react.bench.ts::TypeScript React project::js@stats.toJson()
CodSpeed Performance Gauge
0%
25.4 ms
25.4 ms
js@record module
tests/bench/ts-react.bench.ts::TypeScript React project::js@record module
CodSpeed Performance Gauge
0%
2 ms
2 ms
js@is css mod
tests/bench/ts-react.bench.ts::TypeScript React project::js@is css mod
CodSpeed Performance Gauge
0%
87.5 µs
87.5 µs
rust@build_chunk_graph_parallel
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark::rust@build_chunk_graph_parallel
CodSpeed Performance Gauge
0%
92.3 ms
92.4 ms
bundle@threejs-production
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle::bundle@threejs-production
CodSpeed Performance Gauge
0%
1.7 s
1.7 s
bundle@basic-react-production
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle::bundle@basic-react-production
CodSpeed Performance Gauge
0%
604.7 ms
605.3 ms
bundle@basic-react-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle::bundle@basic-react-production-sourcemap
CodSpeed Performance Gauge
0%
802.6 ms
803.8 ms
js@Traverse compilation.modules
tests/bench/ts-react.bench.ts::TypeScript React project::js@Traverse compilation.modules
CodSpeed Performance Gauge
0%
65.8 µs
65.9 µs
bundle@threejs-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle::bundle@threejs-development
CodSpeed Performance Gauge
0%
844 ms
846 ms
rust@build_chunk_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark::rust@build_chunk_graph
CodSpeed Performance Gauge
0%
100.9 ms
101.1 ms
bundle@basic-react-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle::bundle@basic-react-development
CodSpeed Performance Gauge
0%
403.2 ms
404.9 ms
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project::js@collect imported identifiers
CodSpeed Performance Gauge
0%
212.9 µs
213.9 µs
js@external getResolve
tests/bench/ts-react.bench.ts::TypeScript React project::js@external getResolve
CodSpeed Performance Gauge
-1%
1.5 ms
1.5 ms

Commits

Click on a commit to change the comparison range
Base
main
ae33a2a
+0.21%
chore: update napi-binding.d.ts after build
294790b
2 months ago
by ScriptedAlchemy
-0.12%
fix: resolve clippy warnings in rspack_plugin_mf - Remove needless borrows of chunk_ukey references - Replace map_or with is_some_and for better readability - Use next_back() instead of last() for DoubleEndedIterator
38954f2
2 months ago
by ScriptedAlchemy
-0.19%
fix: resolve build errors from main merge - Fixed type mismatch in flag_dependency_usage_plugin.rs - Converted Vec<ProcessBlockTask> to Queue usage for process_consume_shared_module - Fixed return type issue 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
ee6b82b
2 months ago
by ScriptedAlchemy
+0.02%
Merge branch 'main' into swc-macro Resolved conflicts: - crates/rspack_plugin_javascript/src/plugin/flag_dependency_usage_plugin.rs - pnpm-lock.yaml Kept ConsumeShared module handling from swc-macro branch 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
5f9ff85
2 months ago
by ScriptedAlchemy
+0.02%
fix(mf): correct treeShaeke typo to treeShake in ShareUsagePlugin - Fixed typo in ShareUsageReport struct field serialization - Changed "treeShaeke" to "treeShake" for proper naming - No functional changes, only corrects JSON output key name 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
f253f8d
2 months ago
by ScriptedAlchemy
-0.04%
Merge branch 'main' into swc-macro
1c16f48
2 months ago
by ScriptedAlchemy
+0.06%
style: fix clippy collapsible_if warning in ConsumeSharedModule Simplified nested if statements in find_fallback_module_id method by using let-chain syntax, which is more readable and addresses clippy suggestions. The refactored code maintains the same logic while being more concise: - Combines multiple if-let conditions with && operators - Improves readability and follows Rust best practices - No functional changes, only style improvements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
faaed3c
1 month ago
by ScriptedAlchemy
-0.04%
fix(mf): resolve syntax error in share_usage_plugin.rs Fixed brace mismatch introduced during clippy let-chain refactoring. All clippy warnings in changed files are now resolved. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
79f9dd1
1 month ago
by ScriptedAlchemy
-1.02%
Merge branch 'main' into swc-macro
e16366b
24 days ago
by ScriptedAlchemy
+0.26%
fix: resolve clippy collapsible_if warning in consume_shared_plugin.rs
6b1efda
24 days ago
by ScriptedAlchemy
-0.31%
fix: rustfmt formatting issues
f56bb94
24 days ago
by ScriptedAlchemy
+0.01%
fix: remove unused variable warning in share_usage_plugin.rs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
538e663
23 days ago
by ScriptedAlchemy
-0.17%
fix: remove explicit ShareUsagePlugin (auto-added by ModuleFederationPlugin) - ShareUsagePlugin is automatically added by ModuleFederationRuntimePlugin - Update test to validate share-usage.json in afterBuild hook - Add validation function for inter-shared-module dependencies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
5142140
23 days ago
by ScriptedAlchemy
+0.17%
test: use mocked modules instead of real npm dependencies - Create mocked redux and @reduxjs/toolkit modules - Remove real npm dependencies to avoid CI dependency issues - Mock modules simulate inter-dependency: toolkit imports from redux - Test validates that ShareUsagePlugin tracks these inter-module dependencies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
e2ecca7
23 days ago
by ScriptedAlchemy
+1.52%
chore: exclude examples/basic from biome linting This directory contains test code that intentionally has unused variables and imports for testing module federation tree-shaking features
11e47b3
23 days ago
by ScriptedAlchemy
-0.01%
chore: remove macro sys
681a414
23 days ago
by ScriptedAlchemy
-0.13%
test: fix share-usage-commonjs test configuration - Remove manual ShareUsagePlugin import (it's automatically applied by Module Federation) - ShareUsagePlugin is a built-in that gets applied internally, not available as JS import - This fixes the test failure: "Cannot find module '@rspack/core/dist/builtin-plugin/ShareUsagePlugin'" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
aa967bc
23 days ago
by ScriptedAlchemy
-0.05%
fix: revert unintended WASI file changes The WASI files were accidentally modified in the previous commit. These are auto-generated files that should not be manually edited. Reverting to the previous version to fix CI diff artifact failure. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
d74f89a
23 days ago
by ScriptedAlchemy
-0.08%
fix: add async boundary to share-usage-commonjs test Module Federation shared modules require an async boundary to load properly. The test was failing with 'loadShareSync failed' error because shared modules were being loaded synchronously. Fix: - Created bootstrap.js with the actual test logic - Changed index.js to dynamically import bootstrap.js - Updated validate-share-usage.js to work in test context with proper expectations This follows the pattern used in other Module Federation tests where the entry point must use dynamic import() to create an async boundary for shared module loading. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
098b3da
23 days ago
by ScriptedAlchemy
+0.09%
fix: correct test pattern for share-usage-commonjs The test was using the wrong pattern. ConfigCases tests don't use it() blocks, they run the code directly. Fixed: - Removed it() wrapper from bootstrap.js - Changed to direct validation with error throwing - Updated validate-share-usage.js to use error throwing instead of expect() 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
ad22c21
23 days ago
by ScriptedAlchemy
+0.12%
fix: revert build script changes to use main branch version The build scripts were using Node.js module prefixes that may not be compatible with all environments. Reverting to the main branch version to ensure compatibility. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
ed18724
22 days ago
by ScriptedAlchemy
-0.33%
locks
0d18934
21 days ago
by ScriptedAlchemy
-0.02%
chore: remove old example
b92f020
21 days ago
by ScriptedAlchemy
© 2025 CodSpeed Technology
Home Terms Privacy Docs