-
Notifications
You must be signed in to change notification settings - Fork 156
Comparing changes
Open a pull request
base repository: callstack/repack
base: main
head repository: callstack/repack
compare: refactor/unify-commands
- 6 commits
- 28 files changed
- 2 contributors
Commits on Feb 7, 2026
-
refactor(commands): add shared CompilerInterface, CompilerAsset types…
… and --bundler option Add Bundler type alias, CompilerInterface and CompilerAsset to the shared types.ts. Remove duplicate CompilerAsset definitions from rspack/types.ts and webpack/types.ts. Add --bundler <string> CLI option to both startCommandOptions and bundleCommandOptions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for d6a4ece - Browse repository at this point
Copy the full SHA d6a4eceView commit details -
feat(commands): add bundler auto-detection from config filename
Add detectBundler() utility that determines the bundler engine with the following priority: 1. Explicit --bundler flag 2. Custom config path filename inference (rspack.* vs webpack.*) 3. Config file discovery (rspack configs checked first) 4. Default: rspack Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 831f368 - Browse repository at this point
Copy the full SHA 831f368View commit details -
refactor(commands): implement CompilerInterface on both Compiler classes
Webpack Compiler: - Remove EventEmitter inheritance - Add platforms property and devServerContext with late-init - Add setDevServerContext() and start() (no-op) methods - Internalize event handling: worker messages now call devServerContext.notifyBuildStart/End and broadcastToHmrClients directly instead of emitting events - Constructor now takes platforms as first argument Rspack Compiler: - Add 'implements CompilerInterface' declaration - Import CompilerAsset from shared types Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 79b235e - Browse repository at this point
Copy the full SHA 79b235eView commit details -
refactor(commands): create unified command entry point with auto-dete…
…ction Add unified bundle.ts and start.ts that merge the rspack and webpack implementations, using detectBundler() and dynamic imports to select the correct engine at runtime. Add commands/index.ts exporting the unified command definitions and a createBoundCommands() helper for deprecated entry points. Add commands/index.js and commands/index.d.ts as the new primary CJS entry point. Update commands/rspack.js and commands/webpack.js to be deprecation wrappers that delegate via createBoundCommands(). Add './commands' export to package.json (alongside existing wildcard). Delete old bundler-specific files: - rspack/bundle.ts, rspack/start.ts, rspack/index.ts - webpack/bundle.ts, webpack/start.ts, webpack/index.ts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 0c8939f - Browse repository at this point
Copy the full SHA 0c8939fView commit details -
refactor: update consumers to use unified @callstack/repack/commands
Update init package: - Remove bundler parameter from modifyReactNativeConfig() - Use '@callstack/repack/commands' instead of bundler-specific paths Simplify react-native.config.js in all test apps to use the unified import instead of conditional require based on USE_WEBPACK env var. Update integration tests to import from '@callstack/repack/commands' instead of separate rspack/webpack command sets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 60f05f3 - Browse repository at this point
Copy the full SHA 60f05f3View commit details
Commits on Feb 8, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 35c831b - Browse repository at this point
Copy the full SHA 35c831bView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...refactor/unify-commands