Commit 62ee4f1
Switch from Babel to SWC for faster JavaScript transpilation
This commit migrates the project from Babel to SWC (Speedy Web Compiler)
following the Shakapacker documentation.
Changes:
- Update shakapacker.yml to use 'swc' as javascript_transpiler
- Install @swc/core and swc-loader dependencies
- Add ajv dependency to resolve module resolution issues
SWC is a Rust-based compiler that provides significantly faster
compilation times compared to Babel (up to 20x faster according to
SWC documentation).
The existing Babel configuration and dependencies remain in place
as they may still be needed by other tooling like ESLint and Jest.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ef11653 commit 62ee4f1
3 files changed
+1584
-1391
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
0 commit comments