-
Notifications
You must be signed in to change notification settings - Fork 4
chore: update dependency versions for swc plugin and rspack core #50
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,7 +130,7 @@ | |
| }, | ||
| "dependencies": { | ||
| "@kmijs/shared": "workspace:*", | ||
| "@rspack/core": "1.4.8", | ||
| "@rspack/core": "1.6.8", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify @rspack/core version 1.6.8 existence
# Check if version 1.6.8 exists
echo "=== Checking if @rspack/core@1.6.8 exists ==="
npm view @rspack/core@1.6.8 version 2>&1
# Get available versions between 1.4.8 and 1.6.8
echo -e "\n=== Available versions between 1.4.8 and 1.6.8 ==="
npm view @rspack/core versions --json 2>&1 | jq -r '.[]' | grep -E '^1\.(4|5|6)' | sort -VRepository: kmijs/kmi Length of output: 553 🌐 Web query:
💡 Result: @rspack/core v1.6.8 — published Dec 17, 2025. See the release listing and Rspack release activity for details. (releasealert.dev) Citations: 🌐 Web query:
💡 Result: Here are the main breaking changes and migration actions when moving @rspack/core from 1.4 → 1.6 (concise checklist):
Quick migration steps
If you want, tell me where your current config or code calls the removed APIs (paste snippets) and I’ll provide exact replacements. Citations:
🏁 Script executed: #!/bin/bash
# Search for breaking change patterns in the codebase
# Search for CSS builtins usage
echo "=== Searching for CSS builtins usage ==="
rg "builtins\.css|builtins\." --type js --type json --type ts 2>/dev/null | head -20
# Search for compiler.build/rebuild usage
echo -e "\n=== Searching for compiler.build/rebuild usage ==="
rg "compiler\.(build|rebuild)" --type js --type ts 2>/dev/null | head -20
# Search for experiments config
echo -e "\n=== Searching for experiments config ==="
rg "experiments\s*:" --type json --type js 2>/dev/null | head -20
# Search for rspack config files
echo -e "\n=== Searching for rspack config files ==="
find . -name "rspack*.config.*" -o -name "webpack.config.*" 2>/dev/null | grep -v node_modules | head -20
# Check the actual bundler-shared package.json content
echo -e "\n=== Current @rspack/core dependency in bundler-shared ==="
cat packages/bundler-shared/package.json | grep -A 2 -B 2 "@rspack/core"Repository: kmijs/kmi Length of output: 50367 🏁 Script executed: #!/bin/bash
# More targeted search for rspack config and breaking change patterns
# Find rspack config files
echo "=== Finding rspack config files ==="
find . -type f -name "*rspack*.config.*" 2>/dev/null | head -20
# Check bundler-shared package.json dependencies
echo -e "\n=== Dependencies in bundler-shared/package.json (lines 130-140) ==="
sed -n '130,140p' packages/bundler-shared/package.json
# Search for any SWC minimizer configuration patterns
echo -e "\n=== Searching for minimizer/SWC config ==="
rg "SwcCssMinimizerRspackPlugin|LightningCssMinimizerRspackPlugin|minimizer" --type json --type js 2>/dev/null | grep -v node_modules | head -20
# Search for any experiments config in source files
echo -e "\n=== Checking for experiments config in bundler files ==="
find packages/bundler-shared -type f \( -name "*.js" -o -name "*.ts" -o -name "*.json" \) -exec grep -l "experiments" {} \; 2>/dev/nullRepository: kmijs/kmi Length of output: 50365 Verify the @rspack/core version upgrade and check for breaking changes. The version upgrade from 1.4.8 to 1.6.8 (skipping 1.5.x) has been confirmed—1.6.8 was published on Dec 17, 2025. However, significant breaking changes exist between these versions:
Run a full build locally and in CI, inspect bundle output for tree-shaken modules and ESM artifacts, and test that no config references removed builtins or internal APIs. 🤖 Prompt for AI Agents |
||
| "@swc/helpers": "0.5.15", | ||
| "es5-imcompatible-versions": "^0.1.78", | ||
| "esbuild": "0.17.19", | ||
|
|
||
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.
Node.js engine constraint inconsistent with dependency requirements
The
bundler-rspackpackage declares engine support for Node.js^14.18.0 || >=16.10.0, but the upgraded@rspack/core@1.6.8dependency now requiresnode: '>=18.12.0'. Users running on Node.js 14.x or 16.x may encounter runtime failures since the actual minimum Node.js version is now 18.12.0. The engines field inbundler-rspackand potentiallybundler-sharedneeds updating to reflect the new requirement.Additional Locations (1)
packages/bundler-shared/package.json#L132-L133