Commit 9037d5e
Use SWC transpiler for all JavaScript and TypeScript
- Remove babel.config.js and all Babel transpilation dependencies
- Configure shakapacker.yml to use javascript_transpiler: swc
- Update swc.config.js with spec-compliant settings for Stimulus:
- keepClassNames: true to preserve class names
- loose: false for spec-compliant class transforms
- externalHelpers: false to avoid binding issues
- target: es2015 for broad compatibility
- Move @swc/core and swc-loader to dependencies
- Update Jest to use @swc/jest
- Keep @babel/runtime for runtime helpers and @babel/eslint-parser for ESLint
This is a pure SWC migration (not the hybrid Babel/SWC approach).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5a2fc17 commit 9037d5e
File tree
4 files changed
+21
-49
lines changed- config
4 files changed
+21
-49
lines changedThis file was deleted.
| 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 | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | | - | |
| 18 | + | |
13 | 19 | | |
14 | | - | |
15 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
16 | 29 | | |
17 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 34 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
| |||
101 | 96 | | |
102 | 97 | | |
103 | 98 | | |
104 | | - | |
| 99 | + | |
| 100 | + | |
105 | 101 | | |
106 | 102 | | |
107 | | - | |
108 | | - | |
109 | 103 | | |
110 | 104 | | |
111 | | - | |
112 | 105 | | |
113 | 106 | | |
114 | 107 | | |
115 | | - | |
116 | 108 | | |
117 | 109 | | |
118 | 110 | | |
| |||
135 | 127 | | |
136 | 128 | | |
137 | 129 | | |
138 | | - | |
139 | 130 | | |
140 | 131 | | |
141 | 132 | | |
| |||
158 | 149 | | |
159 | 150 | | |
160 | 151 | | |
161 | | - | |
| 152 | + | |
162 | 153 | | |
163 | 154 | | |
164 | 155 | | |
| |||
0 commit comments