docs/developing_webpacker.md
It's a little trickier for Rails developers to work on the JS code of a project like rails/webpacker. So here are some tips!
For example, for React on Rails Changes, I'm using shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh.
This directory is the TEST_APP_DIR.
Let's call the rails/webpacker directory WEBPACKER_DIR which has rails/webpacker's package.json.
Use yalc unless you like yak shaving weird errors.
WEBPACKER_DIR, run yalc publishTEST_APP_DIR, run yalc link @rails/webpackeryalc push and your changes will be pushed to your TEST_APP_DIR's node_modules.yarn in TEST_APP_DIR if you added or removed dependencies of rails/webpacker.For the Ruby part, just change the gem reference TEST_APP_DIR, like:
gem "webpacker", path: "../../forks/webpacker"