Skip to content

Commit 4408596

Browse files
committed
Remove Webpacker support and replace with Shakapacker
1 parent d5ed1bf commit 4408596

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ V3.0.0 is released with Shakapacker v6 support, including SSR. Please try it out
1010
## Summary
1111
React-Rails is a flexible tool to use [React](http://facebook.github.io/react/) with Rails. The benefits:
1212
* Automatically renders React server-side and client-side
13-
* Supports [Webpacker](https://github.com/rails/webpacker) 5.x and [Shakapacker](https://github.com/shakacode/shakapacker) v6.x
13+
* Supports [Shakapacker](https://github.com/shakacode/shakapacker) v6.x
1414
* Supports Sprockets 4.x, 3.x
1515
* Lets you use [JSX](http://facebook.github.io/react/docs/jsx-in-depth.html), [ES6](http://es6-features.org/), [TypeScript](https://www.typescriptlang.org/), [CoffeeScript](http://coffeescript.org/)
1616

@@ -491,7 +491,7 @@ ReactRailsUJS.detectEvents()
491491

492492
For example, if `Turbolinks` is loaded _after_ `ReactRailsUJS`, you'll need to call this again. This function removes previous handlers before adding new ones, so it's safe to call as often as needed.
493493

494-
If `Turbolinks` is `import`ed via Webpacker (and thus not available globally), `ReactRailsUJS` will be unable to locate it. To fix this, you can temporarily add it to the global namespace:
494+
If `Turbolinks` is `import`ed via Shakapacker (and thus not available globally), `ReactRailsUJS` will be unable to locate it. To fix this, you can temporarily add it to the global namespace:
495495

496496
```js
497497
// Order is particular. First start Turbolinks:
@@ -749,7 +749,7 @@ For example, to change the [ES6 Component template](https://github.com/reactjs/r
749749

750750
### 2.7 to 3.0
751751
- Keep your `react_ujs` up to date: `yarn upgrade`
752-
- **Drop support for Webpacker 3/4:** Before any ReactRails upgrade, make sure the project uses supported bunlders (Webpacker 5, Shakapacker 6, Sprockets 3 and 4)
752+
- **Drop support for Webpacker:** Before any ReactRails upgrade, make sure upgrading from Webpacker to Shakapacker 6.x.
753753
- **SSR:** ReactRails 3.x requires separate compilations for server & client bundles. See [Webpack config](https://github.com/reactjs/react-rails/tree/master/test/dummy/config/webpack) directory in the dummy app to addapt the new implementation.
754754

755755
### 2.3 to 2.4
@@ -826,7 +826,7 @@ TheRubyRacer [hasn't updated LibV8](https://github.com/cowboyd/therubyracer/blob
826826
LibV8 itself is already [beyond version 7](https://github.com/cowboyd/libv8/releases/tag/v7.3.492.27.1) therefore many serverside issues are caused by old JS engines and fixed by using an up to date one such as [MiniRacer](https://github.com/discourse/mini_racer) or [TheRubyRhino](https://github.com/cowboyd/therubyrhino) on JRuby.
827827

828828
### HMR
829-
Hot Module Replacement is [possible with this gem](https://stackoverflow.com/a/54846330/193785) as it does just pass through to Webpacker. Please open an issue to let us know tips and tricks for it to add to the wiki.
829+
Hot Module Replacement is [possible with this gem](https://stackoverflow.com/a/54846330/193785) as it does just pass through to Shakapacker. Please open an issue to let us know tips and tricks for it to add to the wiki.
830830

831831
Sample repo that shows HMR working with `react-rails`: [https://github.com/edelgado/react-rails-hmr](https://github.com/edelgado/react-rails-hmr)
832832

0 commit comments

Comments
 (0)