Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.development_dependencies
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

gem "shakapacker", "8.2.0"
gem "shakapacker", "9.0.0.beta.11"
gem "bootsnap", require: false
gem "rails", "~> 7.1"

Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.1.0)
shakapacker (8.2.0)
shakapacker (9.0.0.beta.11)
activesupport (>= 5.2)
package_json
rack-proxy (>= 0.6.1)
Expand Down Expand Up @@ -440,7 +440,7 @@ DEPENDENCIES
scss_lint
sdoc
selenium-webdriver (= 4.9.0)
shakapacker (= 8.2.0)
shakapacker (= 9.0.0.beta.11)
spring (~> 4.0)
sprockets (~> 4.0)
sqlite3 (~> 1.6)
Expand Down
4 changes: 2 additions & 2 deletions spec/dummy/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.1.0)
shakapacker (8.2.0)
shakapacker (9.0.0.beta.11)
activesupport (>= 5.2)
package_json
rack-proxy (>= 0.6.1)
Expand Down Expand Up @@ -441,7 +441,7 @@ DEPENDENCIES
scss_lint
sdoc
selenium-webdriver (= 4.9.0)
shakapacker (= 8.2.0)
shakapacker (= 9.0.0.beta.11)
spring (~> 4.0)
sprockets (~> 4.0)
sqlite3 (~> 1.6)
Expand Down
34 changes: 0 additions & 34 deletions spec/dummy/babel.config.js

This file was deleted.

10 changes: 6 additions & 4 deletions spec/dummy/config/shakapacker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ default: &default
source_path: client/app
source_entry_path: packs
public_root_path: public

cache_path: tmp/cache/shakapacker
webpack_compile_output: false
ensure_consistent_versioning: true
Expand All @@ -17,6 +16,9 @@ default: &default
cache_manifest: false
nested_entries: true

# Use SWC instead of Babel for transpilation (~20x faster)
swc: true

development:
<<: *default
# Turn this to true if you want to use the rails/shakapacker check that the test
Expand Down Expand Up @@ -45,13 +47,13 @@ development:
# Should we use gzip compression?
compress: true
# Note that apps that do not check the host are vulnerable to DNS rebinding attacks
allowed_hosts: 'all'
allowed_hosts: all
pretty: true
headers:
'Access-Control-Allow-Origin': '*'
Access-Control-Allow-Origin: "*"
static:
watch:
ignored: '**/node_modules/**'
ignored: "**/node_modules/**"

test:
<<: *default
Expand Down
17 changes: 17 additions & 0 deletions spec/dummy/config/swc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// config/swc.config.js
// This file is merged with Shakapacker's default SWC configuration
// See: https://swc.rs/docs/configuration/compilation

module.exports = {
jsc: {
transform: {
react: {
runtime: 'automatic',
development: process.env.NODE_ENV === 'development',
// Only enable Fast Refresh when using webpack-dev-server (bin/dev)
// Not needed for static builds (bin/shakapacker)
refresh: !!process.env.WEBPACK_SERVE,
},
},
},
};
13 changes: 4 additions & 9 deletions spec/dummy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
},
"private": true,
"dependencies": {
"@babel/runtime": "7.17.9",
"@hotwired/turbo-rails": "^8.0.4",
"core-js": "3",
"create-react-class": "^15.6.3",
Expand All @@ -29,17 +28,11 @@
"regenerator-runtime": "^0.13.4"
},
"devDependencies": {
"@babel/core": "7.17.9",
"@babel/plugin-transform-runtime": "7.17.0",
"@babel/preset-env": "7",
"@babel/preset-react": "^7.10.4",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
"@rescript/react": "^0.13.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/react-helmet": "^6.1.5",
"babel-loader": "8.2.4",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"compression-webpack-plugin": "9",
"css-loader": "^6.5.1",
"expose-loader": "^1.0.3",
Expand All @@ -51,15 +44,17 @@
"sass": "^1.43.4",
"sass-loader": "^12.3.0",
"sass-resources-loader": "^2.1.0",
"shakapacker": "8.2.0",
"shakapacker": "9.0.0.beta.11",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "5.3.1",
"url-loader": "^4.0.0",
"webpack": "5.72.0",
"webpack-assets-manifest": "5",
"webpack-cli": "4",
"webpack-dev-server": "^4.9.0",
"webpack-merge": "5"
"webpack-merge": "5",
"@swc/core": "^1.7.39",
"swc-loader": "^0.2.6"
},
"browser": {
"fs": false
Expand Down
Loading
Loading