-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Move to a single singleton #636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/install/template.rb
Outdated
|
|
||
| puts "Creating javascript app source directory" | ||
| directory "#{__dir__}/javascript", "#{Webpacker::Configuration.source}" | ||
| directory "#{__dir__}/javascript", "app/javascript" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone re-runs webpacker:install this will re-create app/javascriptif the source path is not the default we ship
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. We can revert that then.
Need a better system for ensuring that the config is kept updated with new keys before we nix it.
gauravtiwari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 🍰 💯
Webpack has changed their public API in this PR: rails/webpacker#636 This PR allows `react-rails` to work with the latest webpacker version.
Having a million different singletons all referring to each other was getting too much. Now there’s a single root singleton and just normal classes used through composition instead.