Commits
Click on a commit to change the comparison rangechore: update napi-binding.d.ts after build2 months ago
by ScriptedAlchemy 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 DoubleEndedIterator2 months ago
by ScriptedAlchemy 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>2 months ago
by ScriptedAlchemy 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>2 months ago
by ScriptedAlchemy 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>2 months ago
by ScriptedAlchemy Merge branch 'main' into swc-macro2 months ago
by ScriptedAlchemy 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>1 month ago
by ScriptedAlchemy 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>1 month ago
by ScriptedAlchemy Merge branch 'main' into swc-macro24 days ago
by ScriptedAlchemy fix: resolve clippy collapsible_if warning in consume_shared_plugin.rs24 days ago
by ScriptedAlchemy fix: rustfmt formatting issues24 days ago
by ScriptedAlchemy 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>23 days ago
by ScriptedAlchemy 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>23 days ago
by ScriptedAlchemy 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>23 days ago
by ScriptedAlchemy 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 features23 days ago
by ScriptedAlchemy chore: remove macro sys23 days ago
by ScriptedAlchemy 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>23 days ago
by ScriptedAlchemy 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>23 days ago
by ScriptedAlchemy 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>23 days ago
by ScriptedAlchemy 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>23 days ago
by ScriptedAlchemy 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>22 days ago
by ScriptedAlchemy locks21 days ago
by ScriptedAlchemy chore: remove old example21 days ago
by ScriptedAlchemy