Skip to content

Commit e252ca0

Browse files
justin808claude
andcommitted
Configure Babel transpiler for Shakapacker 9.1.0 in Pro dummies
Shakapacker 9.1.0 defaults to SWC transpiler, but the Pro dummy apps don't have swc-loader installed. Configure them to use Babel instead by adding javascript_transpiler: babel to shakapacker.yml. This fixes the build error: "Your Shakapacker config specified using swc, but swc-loader package is not installed." Updated: - react_on_rails_pro/spec/dummy/config/shakapacker.yml - react_on_rails_pro/spec/execjs-compatible-dummy/config/shakapacker.yml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 190279e commit e252ca0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

react_on_rails_pro/spec/dummy/config/shakapacker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ default: &default
66
public_root_path: public
77
public_output_path: packs
88
nested_entries: true
9+
javascript_transpiler: babel
910

1011
cache_path: tmp/cache/webpacker
1112
check_yarn_integrity: false

react_on_rails_pro/spec/execjs-compatible-dummy/config/shakapacker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ default: &default
77
public_output_path: packs
88
cache_path: tmp/webpacker
99
webpack_compile_output: true
10+
javascript_transpiler: babel
1011

1112
# Additional paths webpack should lookup modules
1213
# ['app/assets', 'engine/foo/app/assets']

0 commit comments

Comments
 (0)