-
-
Notifications
You must be signed in to change notification settings - Fork 633
Closed
Description
Summary
The spec/dummy test application currently uses Babel as the JavaScript transpiler (Shakapacker 8.2.0 default). With Shakapacker 9.3.0+, SWC is the default transpiler and is ~20x faster than Babel.
Current State
spec/dummy/package.json: Uses Babel dependencies (@babel/core,babel-loader, etc.)spec/dummy/config/shakapacker.yml: Nojavascript_transpilersetting (defaults to Babel)- Shakapacker version: 8.2.0
Proposed Changes
-
Update
spec/dummy/config/shakapacker.ymlto add:default: &default javascript_transpiler: swc
-
Add SWC dependencies to
spec/dummy/package.json:"devDependencies": { "@swc/core": "^1.7.0", "swc-loader": "^0.2.6" }
-
Optionally upgrade Shakapacker to 9.3.0+ to get the default SWC behavior
-
Verify all tests pass with the new configuration
Benefits
- Faster webpack builds during test runs
- Better alignment with recommended Shakapacker 9.3.0+ defaults
- Tests will exercise the SWC code path
Testing Checklist
-
rake run_rspec:dummypasses -
yarn build:testcompletes successfully - Hot reloading works in development mode
- All integration tests pass
Related
This issue was created as a follow-up to the SWC detection feature PR to keep changes focused.
coderabbitai
Metadata
Metadata
Assignees
Labels
No labels