Robert Mosolgo
Robert Mosolgo
That change looks great! Could you open a PR for it?
Yes, I think you're right! I haven't noticed because I don't actually use the generator 😬 Feel free to add to that PR or open a new one, either way!
Updating the generator for module-related boilerplate in https://github.com/reactjs/react-rails/pull/710
Hi, are you using webpacker or sprockets to build your javascripts?
Sprockets is OK! That setting should work for Sprockets ... Just to be sure, is there any other setting in `application.rb` ? (I can't remember which takes precedent.) Also, which...
This is a downside of how [webpack's `require.context`](https://webpack.github.io/docs/context.html) works. In order to serve files at runtime, it has to load _all_ the files that match the pattern. Otherwise, it can't...
> single monolith file This is the Rails Way :tm: 😆 Sure, you have one big download, but then the JS is cached for the rest of the time, until...
Hi! Thanks for the great bug report. What if you add `.jsx` to your `react_component` call, for example: ``` react_component 'PerformanceRow.jsx' ``` ? I think webpack does some magic with...
Can you try accessing the `componentRequireContext` directly to make sure it's working? Add to `packs/application.js` ```js // Attach it to the window: window.componentRequireContext = componentRequireContext ``` Then in Chrome console,...
> it thinks that .jsx is a member of module PerformanceRow you're _so_ right about that! Here's that lookup code: https://github.com/reactjs/react-rails/blob/master/react_ujs/src/getConstructor/fromRequireContext.js#L9 I think we could just treat `.jsx` as a...