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
Core: Rename generated-stories-entry
to cjs
extension so require works
#16727
Conversation
☁️ Nx Cloud ReportCI ran the following commands for commit 07ca419. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
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.
@jpzwarte I am surprised you don't need to make the same adjustment to the xxx-generated-config-entry.js
also? (lines 128 & 136 above?).
@tmeasday I've added them, but afaics they're not really necessary somehow. |
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.
LGTM. I guess we may as well use .cjs
everywhere we are going to compiling templates to require()
code.
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.
@tmeasday this seems to break angular somehow per the e2e tests
Ok, so the reason this breaks is that the Lines 139 to 156 in 8ea0e35
@shilman git blame isn't helping me much here. Do you recall why this is here (seems a bit weird, but I don't particularly want to change it). I guess we have 3 options:
I would lean towards 3 for reasons of caution I guess. @jpzwarte I guess this is why you didn't originally need to change the module file. |
@tmeasday I think this is a question for @ndelangen |
@ndelangen can I get you take a quick look at my comment above? If it doesn't ring any bells, we'll just take my option 3 and be done with it. Sorry for the delays @jpzwarte! |
Let's do option 3, and revisit this for 7.0? |
@jpzwarte any appetite for reverting what I asked you to do and adding a comment explaining why? 🙏 |
This reverts commit b80d1aa.
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.
.cjs
extension so require works.generated-stories-entry
to cjs
extension so require works
Totally understand @jpzwarte, no problem at all! |
Possible fix for #14877.