shakapacker 10.1.0.rc.1 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -9
- data/README.md +7 -0
- data/lib/install/bin/diff-bundler-config +36 -6
- data/lib/install/bin/shakapacker-config +36 -6
- data/lib/shakapacker/version.rb +1 -1
- data/lib/tasks/shakapacker/export_bundler_config.rake +21 -4
- data/package.json +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dc01ff79d020c836ae53bdef4d47df68ad3c8984a105b1fd8b52facc80ad8fa
|
|
4
|
+
data.tar.gz: 2fe07359eea5a27e55a566ee28c33ad5bd32cedce9a7aab3d0f27418cec2a808
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc172e0660b3aca80927669091428921033af0cf103b3502dd4dc5be68b4d85d287b684e4c66b224125a6b20f747b3a60d840807c442e3d28a7c34bea520151b
|
|
7
|
+
data.tar.gz: 071a4e88670fb3503edbbeef1fce516b2accb953751e3abb60d88d92622468821871d15a71251b1beb055ffe1c86b36a1d60a4a8f4a2e296d43161413f4b917c
|
data/CHANGELOG.md
CHANGED
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
-
## [v10.1.0
|
|
12
|
+
## [v10.1.0] - May 27, 2026
|
|
13
13
|
|
|
14
14
|
### Added
|
|
15
15
|
|
|
16
|
-
- **Added supplemental npm packages `shakapacker-webpack` and `shakapacker-rspack`**. [PR #1096](https://github.com/shakacode/shakapacker/pull/1096) by [justin808](https://github.com/justin808). Optional packages that lockstep with core and
|
|
16
|
+
- **Added supplemental npm packages `shakapacker-webpack` and `shakapacker-rspack`**. [PR #1096](https://github.com/shakacode/shakapacker/pull/1096), [PR #1133](https://github.com/shakacode/shakapacker/pull/1133) by [justin808](https://github.com/justin808). Optional packages that lockstep with core and declare the managed-build stack as required peer dependencies (so on npm 7+ a single `yarn add shakapacker-webpack` auto-installs `shakapacker`, `webpack`, `webpack-cli`, and `webpack-assets-manifest`; `shakapacker-rspack` declares `shakapacker`, `@rspack/core`, `@rspack/cli`, and `rspack-manifest-plugin`). Required peers eliminate the silent duplicate-bundler failure mode that direct dependencies could cause when an app or transitive dep pins a different bundler version. Optional features (transpilers, dev-server, CSS preprocessors, react-refresh) remain as opt-in `peerDependencies` so SCSS/native-binding bloat isn't forced on every install. The wrappers emit structured warnings (`SHAKAPACKER_BUNDLER_MISMATCH`, `SHAKAPACKER_NO_TRANSPILER`) when `config.assets_bundler` or `javascript_transpiler` doesn't match the installed peers. pnpm and Yarn PnP users should keep packages imported by app config files as explicit app dependencies (the Rails installer handles this automatically). See the [v10.1 migration guide](docs/migration/v10.1-supplemental-packages.md) for adoption steps and [`docs/dependency-strategy.md`](docs/dependency-strategy.md) for the design rationale and v11 roadmap.
|
|
17
17
|
- **Added `shakapacker:doctor` check for disabled Rspack cache**. [PR #1100](https://github.com/shakacode/shakapacker/pull/1100) by [justin808](https://github.com/justin808). The doctor now inspects the Rspack config file for an explicit `cache: false`, warns when found (disabling cache causes significantly slower builds), and also flags Rspack v1 installs (where persistent cache is experimental) with a recommendation to upgrade to v2.
|
|
18
18
|
- **Added a `shakapacker:doctor` hint to compiler output**. [PR #1100](https://github.com/shakacode/shakapacker/pull/1100) by [justin808](https://github.com/justin808). The compiler now logs a one-time tip suggesting `bundle exec rake shakapacker:doctor` after a failed compilation, so healthy build loops stay quiet.
|
|
19
19
|
|
|
20
20
|
### Migration Notes
|
|
21
21
|
|
|
22
|
-
- **Simplify your `package.json` by adopting a supplemental package**.
|
|
22
|
+
- **Simplify your `package.json` by adopting a supplemental package**. On npm 7+ (or Yarn 2+ in `nodeLinker: node-modules` mode), existing apps can drop the explicit managed-build deps from `devDependencies` and let the supplemental package's required peers be auto-installed:
|
|
23
23
|
- **Rspack apps** can replace `shakapacker` + `@rspack/core` + `@rspack/cli` + `rspack-manifest-plugin` with a single `shakapacker-rspack`. See `packages/shakapacker-rspack/README.md` §"Simplifying an existing rspack install" for the before/after.
|
|
24
24
|
- **Webpack apps** can replace `shakapacker` + `webpack` + `webpack-cli` + `webpack-assets-manifest` with a single `shakapacker-webpack`. See `packages/shakapacker-webpack/README.md` §"Simplifying an existing webpack install" for the before/after.
|
|
25
25
|
- Optional peers (transpilers, `webpack-dev-server`, CSS preprocessors, react-refresh) stay only if your app uses those features.
|
|
@@ -34,18 +34,17 @@
|
|
|
34
34
|
### Changed
|
|
35
35
|
|
|
36
36
|
- **Changed `shakapacker:install` to default fresh Rspack installs to v2 (`^2.0.0-0`)**. [PR #1091](https://github.com/shakacode/shakapacker/pull/1091) by [ihabadham](https://github.com/ihabadham). `lib/install/package.json` now declares `@rspack/core` and `@rspack/cli` as `^1.0.0 || ^2.0.0-0`; fresh installs pick the v2 range. Existing apps are unaffected. Note: Rspack v2 requires Node.js 20.19.0+.
|
|
37
|
-
- **Slimmed the published gem from ~486K (294 files) to ~121K (75 files)**. [PR #1110](https://github.com/shakacode/shakapacker/pull/1110) by [justin808](https://github.com/justin808). Replaced the broad `git ls-files` gem manifest with an explicit runtime/install allowlist (`CHANGELOG.md`, `MIT-LICENSE`, `README.md`, gemspec, `lib`, `sig`), excluding repo-only docs, tests, JavaScript package source, CI/tooling files, and `test_files` metadata from the published gem. Fixes [#987](https://github.com/shakacode/shakapacker/issues/987).
|
|
37
|
+
- **Slimmed the published gem from ~486K (294 files) to ~121K (75 files)**. [PR #1110](https://github.com/shakacode/shakapacker/pull/1110), [PR #1120](https://github.com/shakacode/shakapacker/pull/1120) by [justin808](https://github.com/justin808). Replaced the broad `git ls-files` gem manifest with an explicit runtime/install allowlist (`CHANGELOG.md`, `MIT-LICENSE`, `README.md`, gemspec, `lib`, `sig`, `package.json`), excluding repo-only docs, tests, JavaScript package source, CI/tooling files, and `test_files` metadata from the published gem. Fixes [#987](https://github.com/shakacode/shakapacker/issues/987).
|
|
38
38
|
|
|
39
39
|
### Fixed
|
|
40
40
|
|
|
41
41
|
- **Fixed webpack-dev-server `static` config defaulting to watch `public/` directory unnecessarily**. [PR #1032](https://github.com/shakacode/shakapacker/pull/1032) by [ihabadham](https://github.com/ihabadham). Three bugs fixed: (1) `static` now defaults to `false` instead of a misconfigured object that caused webpack-dev-server to watch the `public/` directory, which is already served by Rails via `ActionDispatch::Static`; (2) setting `static: false` in `shakapacker.yml` is no longer silently ignored; (3) the default template no longer includes `static.watch`, which was a v3→v4 migration artifact. Fixes [#1031](https://github.com/shakacode/shakapacker/issues/1031).
|
|
42
42
|
- **Fixed Rspack React Refresh plugin loading with `@rspack/plugin-react-refresh` v2**. [PR #1116](https://github.com/shakacode/shakapacker/pull/1116) by [justin808](https://github.com/justin808). Shakapacker now reads the v2 named `ReactRefreshRspackPlugin` export while retaining compatibility with v1 direct/default CommonJS export shapes, preventing `TypeError: ReactRefreshRspackPlugin is not a constructor` during rspack dev-server startup.
|
|
43
43
|
- **Widened `@rspack/plugin-react-refresh` peer range to `^1.0.0 || ^2.0.0-0`**. [PR #1091](https://github.com/shakacode/shakapacker/pull/1091) by [ihabadham](https://github.com/ihabadham). Fixes the `ERESOLVE` conflict when installing `@rspack/plugin-react-refresh@^2.0.0` alongside `shakapacker@10.0.0`.
|
|
44
|
-
- **Fixed `NodePackageVersion#find_version` for local-path `shakapacker` installs (e.g. `yalc`, `file:`, relative paths)**. [PR #1086](https://github.com/shakacode/shakapacker/pull/1086) by [justin808](https://github.com/justin808). The version check now consults `package.json` first and short-circuits on
|
|
45
|
-
- **Detected single-dot (`./...`) local-path declarations in `NodePackageVersion#find_version`**. [PR #1106](https://github.com/shakacode/shakapacker/pull/1106) by [justin808](https://github.com/justin808). Extended `LOCAL_PATH_REGEX` to treat `./vendor/shakapacker`-style declarations as local-path installs (alongside the `../` and `file:` patterns added in [#1086](https://github.com/shakacode/shakapacker/pull/1086)), so version checks short-circuit before consulting potentially stale lockfile semvers. Fixes [#1103](https://github.com/shakacode/shakapacker/issues/1103).
|
|
44
|
+
- **Fixed `NodePackageVersion#find_version` for local-path `shakapacker` installs (e.g. `yalc`, `file:`, relative paths)**. [PR #1086](https://github.com/shakacode/shakapacker/pull/1086), [PR #1106](https://github.com/shakacode/shakapacker/pull/1106) by [justin808](https://github.com/justin808). The version check now consults `package.json` first and short-circuits on `../`, `./`, and `file:` dependencies, so stale lockfile semvers no longer trigger false gem↔node version mismatches. `package_json_dependency` also consults `devDependencies` in addition to `dependencies`. The `LOCAL_PATH_REGEX` constant replaces a duplicated inline regex and anchors both alternatives to the start of the string, removing a latent false-positive on version strings containing `..` mid-value. Fixes [#1103](https://github.com/shakacode/shakapacker/issues/1103).
|
|
46
45
|
- **Fix rspack setup not reusing certain shared webpack-rspack config settings**. [PR #1085](https://github.com/shakacode/shakapacker/pull/1085) by [brunodccarvalho](https://github.com/brunodccarvalho). Default config changes include `optimization.splitChunks.chunks="all"`, `optimization.runtimeChunk="single"`, the webpack compression plugin in production, and the removal of minimization plugins in development. Fixes [#984](https://github.com/shakacode/shakapacker/issues/984).
|
|
47
46
|
- **Fixed Rspack Sass rule blocking `sass-embedded` users by requiring the `sass` package**. [PR #1105](https://github.com/shakacode/shakapacker/pull/1105) by [justin808](https://github.com/justin808). Rspack Sass detection now only checks for `sass-loader`; the implementation (`sass`, `sass-embedded`, etc.) is resolved by the loader at build time, matching the webpack code path.
|
|
48
|
-
- **Fixed `bin/shakapacker-config` and `bin/diff-bundler-config` in ESM apps**. [PR #1104](https://github.com/shakacode/shakapacker/pull/1104) by [justin808](https://github.com/justin808). Apps with `"type": "module"` in `package.json` failed to run the JavaScript binstubs because Node parsed them as ESM. The binstubs are now Ruby wrappers that locate Node and invoke `.cjs` package scripts shipped inside `node_modules/shakapacker/package/bin/`. Existing apps with the old JavaScript binstubs should re-run `bundle exec rake shakapacker:binstubs` to install the new Ruby wrappers.
|
|
47
|
+
- **Fixed `bin/shakapacker-config` and `bin/diff-bundler-config` in ESM apps and on upgraded apps**. [PR #1104](https://github.com/shakacode/shakapacker/pull/1104), [PR #1132](https://github.com/shakacode/shakapacker/pull/1132) by [justin808](https://github.com/justin808). Apps with `"type": "module"` in `package.json` failed to run the JavaScript binstubs because Node parsed them as ESM. The binstubs are now Ruby wrappers that locate Node (without executing it during lookup) and invoke `.cjs` package scripts shipped inside `node_modules/shakapacker/package/bin/`. The wrappers also map `NODE_ENV` from `RAILS_ENV` and print useful messages for non-`Error` CLI rejections. `shakapacker:export_bundler_config` dispatches binstubs by shebang, so upgraded apps with legacy JavaScript binstubs continue to run via Node while Ruby wrappers run via Ruby. Existing apps with the old JavaScript binstubs should re-run `bundle exec rake shakapacker:binstubs` to install the new Ruby wrappers. Fixes [#1123](https://github.com/shakacode/shakapacker/issues/1123).
|
|
49
48
|
|
|
50
49
|
## [v10.0.0] - April 8, 2026
|
|
51
50
|
|
|
@@ -947,8 +946,8 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
|
|
|
947
946
|
|
|
948
947
|
See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
|
|
949
948
|
|
|
950
|
-
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v10.1.0
|
|
951
|
-
[v10.1.0
|
|
949
|
+
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v10.1.0...main
|
|
950
|
+
[v10.1.0]: https://github.com/shakacode/shakapacker/compare/v10.0.0...v10.1.0
|
|
952
951
|
[v10.0.0]: https://github.com/shakacode/shakapacker/compare/v9.7.0...v10.0.0
|
|
953
952
|
[v9.7.0]: https://github.com/shakacode/shakapacker/compare/v9.6.1...v9.7.0
|
|
954
953
|
[v9.6.1]: https://github.com/shakacode/shakapacker/compare/v9.6.0...v9.6.1
|
data/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://shakapacker.com">
|
|
3
|
+
<img src="./assets/brand/lockup-light.png?raw=true" alt="Shakapacker: Rails asset bundling with modern build systems" width="760">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
1
7
|
# Shakapacker (v10)
|
|
2
8
|
|
|
3
9
|
---
|
|
@@ -11,6 +17,7 @@ _📖 **Full documentation at [shakapacker.com](https://shakapacker.com)**_
|
|
|
11
17
|
_Official, actively maintained successor to [rails/webpacker](https://github.com/rails/webpacker). ShakaCode stands behind the long-term maintenance and development of this project for the Rails community._
|
|
12
18
|
|
|
13
19
|
- ⚠️ See the [6-stable](https://github.com/shakacode/shakapacker/tree/6-stable) branch for Shakapacker v6.x code and documentation. :warning:
|
|
20
|
+
- **New in 10.1: optional `shakapacker-webpack` and `shakapacker-rspack` packages let you replace four `devDependencies` with one. See the [v10.1 supplemental packages migration guide](./docs/migration/v10.1-supplemental-packages.md).**
|
|
14
21
|
- **See the [v10.0.0 release notes](https://github.com/shakacode/shakapacker/releases/tag/v10.0.0) for upgrading from v9 to v10.**
|
|
15
22
|
- **See [V9 Upgrade](./docs/v9_upgrade.md) for upgrading from v8 to v9.**
|
|
16
23
|
- See [V8 Upgrade](./docs/v8_upgrade.md) for upgrading from the v7 release.
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
require "rbconfig"
|
|
5
|
+
|
|
6
|
+
# Keep helper logic in sync across:
|
|
7
|
+
# - lib/install/bin/shakapacker-config
|
|
8
|
+
# - lib/install/bin/diff-bundler-config
|
|
9
|
+
# - spec/dummy/bin/shakapacker-config
|
|
10
|
+
# - package/configExporter/cli.ts (createBinStub).
|
|
6
11
|
def shakapacker_app_root
|
|
7
12
|
candidate = File.expand_path("..", __dir__)
|
|
8
13
|
return candidate if File.exist?(File.join(candidate, "Gemfile"))
|
|
@@ -12,17 +17,42 @@ def shakapacker_app_root
|
|
|
12
17
|
Dir.pwd
|
|
13
18
|
end
|
|
14
19
|
|
|
20
|
+
def shakapacker_executable_candidates(executable)
|
|
21
|
+
extensions = [
|
|
22
|
+
RbConfig::CONFIG["EXEEXT"],
|
|
23
|
+
*ENV.fetch("PATHEXT", "").split(File::PATH_SEPARATOR)
|
|
24
|
+
].compact.reject(&:empty?)
|
|
25
|
+
return [executable] if extensions.empty? || File.extname(executable) != ""
|
|
26
|
+
|
|
27
|
+
([executable] + extensions.map { |extension| "#{executable}#{extension}" }).uniq
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def shakapacker_find_executable(executable)
|
|
31
|
+
ENV.fetch("PATH", "").split(File::PATH_SEPARATOR).each do |path|
|
|
32
|
+
shakapacker_executable_candidates(executable).each do |candidate|
|
|
33
|
+
executable_path = File.join(path, candidate)
|
|
34
|
+
return executable_path if File.file?(executable_path) && File.executable?(executable_path)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
nil
|
|
39
|
+
end
|
|
40
|
+
|
|
15
41
|
def shakapacker_node_binary
|
|
16
|
-
node_bin = "node"
|
|
17
|
-
return node_bin if
|
|
42
|
+
node_bin = shakapacker_find_executable("node")
|
|
43
|
+
return node_bin if node_bin
|
|
18
44
|
|
|
19
|
-
warn
|
|
45
|
+
warn '[Shakapacker] Could not find Node.js executable "node". ' \
|
|
20
46
|
"Install Node.js and try again."
|
|
21
47
|
exit 1
|
|
22
48
|
end
|
|
23
49
|
|
|
50
|
+
def shakapacker_node_env
|
|
51
|
+
%w[development test].include?(ENV["RAILS_ENV"]) ? "development" : "production"
|
|
52
|
+
end
|
|
53
|
+
|
|
24
54
|
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
|
25
|
-
ENV["NODE_ENV"] ||=
|
|
55
|
+
ENV["NODE_ENV"] ||= shakapacker_node_env
|
|
26
56
|
|
|
27
57
|
app_root = shakapacker_app_root
|
|
28
58
|
node_bin = shakapacker_node_binary
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
require "rbconfig"
|
|
5
|
+
|
|
6
|
+
# Keep helper logic in sync across:
|
|
7
|
+
# - lib/install/bin/shakapacker-config
|
|
8
|
+
# - lib/install/bin/diff-bundler-config
|
|
9
|
+
# - spec/dummy/bin/shakapacker-config
|
|
10
|
+
# - package/configExporter/cli.ts (createBinStub).
|
|
6
11
|
def shakapacker_app_root
|
|
7
12
|
candidate = File.expand_path("..", __dir__)
|
|
8
13
|
return candidate if File.exist?(File.join(candidate, "Gemfile"))
|
|
@@ -12,17 +17,42 @@ def shakapacker_app_root
|
|
|
12
17
|
Dir.pwd
|
|
13
18
|
end
|
|
14
19
|
|
|
20
|
+
def shakapacker_executable_candidates(executable)
|
|
21
|
+
extensions = [
|
|
22
|
+
RbConfig::CONFIG["EXEEXT"],
|
|
23
|
+
*ENV.fetch("PATHEXT", "").split(File::PATH_SEPARATOR)
|
|
24
|
+
].compact.reject(&:empty?)
|
|
25
|
+
return [executable] if extensions.empty? || File.extname(executable) != ""
|
|
26
|
+
|
|
27
|
+
([executable] + extensions.map { |extension| "#{executable}#{extension}" }).uniq
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def shakapacker_find_executable(executable)
|
|
31
|
+
ENV.fetch("PATH", "").split(File::PATH_SEPARATOR).each do |path|
|
|
32
|
+
shakapacker_executable_candidates(executable).each do |candidate|
|
|
33
|
+
executable_path = File.join(path, candidate)
|
|
34
|
+
return executable_path if File.file?(executable_path) && File.executable?(executable_path)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
nil
|
|
39
|
+
end
|
|
40
|
+
|
|
15
41
|
def shakapacker_node_binary
|
|
16
|
-
node_bin = "node"
|
|
17
|
-
return node_bin if
|
|
42
|
+
node_bin = shakapacker_find_executable("node")
|
|
43
|
+
return node_bin if node_bin
|
|
18
44
|
|
|
19
|
-
warn
|
|
45
|
+
warn '[Shakapacker] Could not find Node.js executable "node". ' \
|
|
20
46
|
"Install Node.js and try again."
|
|
21
47
|
exit 1
|
|
22
48
|
end
|
|
23
49
|
|
|
50
|
+
def shakapacker_node_env
|
|
51
|
+
%w[development test].include?(ENV["RAILS_ENV"]) ? "development" : "production"
|
|
52
|
+
end
|
|
53
|
+
|
|
24
54
|
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
|
25
|
-
ENV["NODE_ENV"] ||=
|
|
55
|
+
ENV["NODE_ENV"] ||= shakapacker_node_env
|
|
26
56
|
|
|
27
57
|
app_root = shakapacker_app_root
|
|
28
58
|
node_bin = shakapacker_node_binary
|
data/lib/shakapacker/version.rb
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
namespace :shakapacker do
|
|
2
|
+
def shakapacker_config_binstub_command(bin_path)
|
|
3
|
+
# Read in binary mode so Windows CRLF line endings do not leak \r into the shebang.
|
|
4
|
+
shebang = File.open(bin_path, "rb", &:gets).to_s
|
|
5
|
+
command = shebang.delete_prefix("#!").strip.split(/\s+/)
|
|
6
|
+
executable = File.basename(command.first.to_s)
|
|
7
|
+
|
|
8
|
+
if executable == "env"
|
|
9
|
+
executable = File.basename(command.drop(1).find { |part| !part.start_with?("-") }.to_s)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Legacy JS binstubs are dispatched via PATH lookup; Kernel#exec resolves
|
|
13
|
+
# "node" through the shell's PATH. The Ruby binstubs perform their own
|
|
14
|
+
# explicit lookup via shakapacker_find_executable, which matters more on
|
|
15
|
+
# Windows where PATHEXT is involved.
|
|
16
|
+
executable == "node" ? ["node", bin_path.to_s] : [RbConfig.ruby, bin_path.to_s]
|
|
17
|
+
end
|
|
18
|
+
|
|
2
19
|
desc <<~DESC
|
|
3
20
|
Export webpack or rspack configuration for debugging and analysis
|
|
4
21
|
|
|
@@ -54,14 +71,14 @@ namespace :shakapacker do
|
|
|
54
71
|
$stderr.puts ""
|
|
55
72
|
|
|
56
73
|
Dir.chdir(Rails.root) do
|
|
57
|
-
exec(RbConfig.ruby, gem_bin_path, *ARGV[1..])
|
|
74
|
+
Kernel.exec(RbConfig.ruby, gem_bin_path, *ARGV[1..])
|
|
58
75
|
end
|
|
59
76
|
else
|
|
60
77
|
# Pass through command-line arguments after the task name.
|
|
61
|
-
#
|
|
62
|
-
#
|
|
78
|
+
# Ruby binstubs run under the same Ruby as Rake; legacy JavaScript
|
|
79
|
+
# binstubs from upgraded apps still need Node until users refresh them.
|
|
63
80
|
Dir.chdir(Rails.root) do
|
|
64
|
-
exec(
|
|
81
|
+
Kernel.exec(*shakapacker_config_binstub_command(bin_path), *ARGV[1..])
|
|
65
82
|
end
|
|
66
83
|
end
|
|
67
84
|
end
|
data/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shakapacker",
|
|
3
|
-
"version": "10.1.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "Use webpack to manage app-like JavaScript modules in Rails",
|
|
5
5
|
"homepage": "https://github.com/shakacode/shakapacker",
|
|
6
6
|
"bugs": {
|
|
@@ -108,14 +108,14 @@
|
|
|
108
108
|
"@babel/runtime": "^7.17.9",
|
|
109
109
|
"@rspack/cli": "^1.0.0 || ^2.0.0-0",
|
|
110
110
|
"@rspack/core": "^1.0.0 || ^2.0.0-0",
|
|
111
|
-
"@rspack/plugin-react-refresh": "^1.0.0 || ^2.0.0
|
|
111
|
+
"@rspack/plugin-react-refresh": "^1.0.0 || ^2.0.0",
|
|
112
112
|
"@swc/core": "^1.3.0",
|
|
113
113
|
"@types/babel__core": "^7.0.0",
|
|
114
114
|
"@types/webpack": "^5.0.0",
|
|
115
115
|
"babel-loader": "^8.2.4 || ^9.0.0 || ^10.0.0",
|
|
116
116
|
"compression-webpack-plugin": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
117
117
|
"css-loader": "^6.8.1 || ^7.0.0",
|
|
118
|
-
"esbuild": "
|
|
118
|
+
"esbuild": ">=0.14.0 <1.0.0",
|
|
119
119
|
"esbuild-loader": "^2.0.0 || ^3.0.0 || ^4.0.0",
|
|
120
120
|
"mini-css-extract-plugin": "^2.0.0",
|
|
121
121
|
"rspack-manifest-plugin": "^5.0.0",
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shakapacker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 10.1.0
|
|
4
|
+
version: 10.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
@@ -225,7 +225,7 @@ homepage: https://github.com/shakacode/shakapacker
|
|
|
225
225
|
licenses:
|
|
226
226
|
- MIT
|
|
227
227
|
metadata:
|
|
228
|
-
source_code_uri: https://github.com/shakacode/shakapacker/tree/v10.1.0
|
|
228
|
+
source_code_uri: https://github.com/shakacode/shakapacker/tree/v10.1.0
|
|
229
229
|
rdoc_options: []
|
|
230
230
|
require_paths:
|
|
231
231
|
- lib
|