Skip to content

Commit

Permalink
Don't run Spring in erb loader (#141)
Browse files Browse the repository at this point in the history
* Don't run Spring in erb loader

* Add changelog entry

* Add changelog entry
  • Loading branch information
Tom Dracz authored Jun 5, 2022
1 parent 2965088 commit 226f5ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ _Please add entries here for your pull requests that are not yet released._

This will be again removed in Shakapacker v7 so you need to ensure you are installing yarn packages explicitly before the asset compilation, rather than relying on this behaviour through `asset:precompile` task (e.g. Capistrano deployment).

- Disable Spring being used by `rails-erb-loader`. [PR 141](https://github.com/shakacode/shakapacker/pull/141) by [tomdracz](https://github.com/tomdracz).

## [v6.4.0] - June 2, 2022
### Fixed
- Fixed [Issue 123: Rails 7.0.3 - Webpacker configuration file not found when running rails webpacker:install (shakapacker v6.3)](https://github.com/shakacode/shakapacker/issues/123) in [PR 136: Don't enhance precompile if no config #136](https://github.com/shakacode/shakapacker/pull/136) by [justin808](https://github.com/justin808).
Expand Down
8 changes: 7 additions & 1 deletion package/rules/erb.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ module.exports = canProcess('rails-erb-loader', (resolvedPath) => ({
use: [
{
loader: resolvedPath,
options: { runner: `${runner}bin/rails runner` }
options: {
runner: `${runner}bin/rails runner`,
env: {
...process.env,
DISABLE_SPRING: 1
}
}
}
]
}))

0 comments on commit 226f5ba

Please sign in to comment.