Skip to content

Commit 12a944f

Browse files
committed
webpacker gem no longer provides yarn binstub
1 parent 1141e3a commit 12a944f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/generators/react/install_generator.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ def setup_react_sprockets
103103
JS
104104

105105
def setup_react_webpacker
106-
yarn_binstub = File.expand_path("./bin/yarn", ::Rails.root)
107-
`#{yarn_binstub} add react_ujs`
106+
`yarn add react_ujs`
108107
if manifest.exist?
109108
append_file(manifest, WEBPACKER_SETUP_UJS)
110109
else

0 commit comments

Comments
 (0)