-
Notifications
You must be signed in to change notification settings - Fork 973
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
Hide entry.js | Add setup command to restore #1842
Conversation
c4a232f
to
a4b04c6
Compare
Looking good! 👍 |
Thanks for the idea @peterp ! |
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.
A few small things that I noticed 👍
a4b04c6
to
2ab664f
Compare
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.
This is looking great, approved, pending those docs :)
Taking this for an E2E spin now. Specifically double-checking the template codebase changes (for my sanity). |
@dac09 CI lint error. Ignore? |
Yeah must be the new eslint configs that just went in. I'll see if I can selectively ignore these when I update this branch |
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.
Result of E2E test is a runtime error that's blocking merge:
Looks like you get a Babel ChooseYourOwnAdventure™
Add @babel/preset-react (https://git.io/JfeDR) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://git.io/vb4yA) to the 'plugins' section to enable parsing.
Can confirm :(. It works ok when building, but not when running |
Ok @thedavidprice, e2e tests now pass for me. Sorry about this. Please give it a go on your side! I'm really sad I couldn't use my elegant template solution for the setup command 😭 |
… feature/hide-entry-js * 'feature/hide-entry-js' of github.com:dac09/redwood: Docs: Update CONTRIBUTING.md `rwt link` docs (redwoodjs#1852) Fixes generating scenarios for relations where the field name is different than the relation name (redwoodjs#1848)
What?
Hide's entry.js (the mount point of the web side), and houses it internally within
@redwoodjs/web
If you're a power user 💪🏽, and want to customise it, simply run
yarn rw setup custom-entry
and it'll add it back to your project.Help needed 🚩
Note
⚠ This is a breaking change, whether you're opt-ing in to prerender or not.