-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Docs: Update main.js format in docs/tutorials/recipes #20801
Conversation
3cd7df1
to
d2441f8
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.
@yannbf, thanks for making this change and helping out with the docs. Appreciate it 🙏 ! I left a few small items related to this pull request for you to look at. Let me know so that we can get this merged.
0e05b29
to
9df25df
Compare
I wonder, is it time to start naming the file |
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.
I found a few require()
statements hanging around.
docs/snippets/common/storybook-main-config-remark-options.js.mdx
Outdated
Show resolved
Hide resolved
docs/snippets/common/storybook-main-ts-module-resolution.js.mdx
Outdated
Show resolved
Hide resolved
docs/snippets/common/storybook-main-using-existing-config.js.mdx
Outdated
Show resolved
Hide resolved
docs/snippets/common/storybook-test-runner-helper-function.js.mdx
Outdated
Show resolved
Hide resolved
@@ -3,7 +3,7 @@ | |||
|
|||
const preprocess = require('svelte-preprocess'); |
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.
require
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.
But also, this snippet doesn't seem right... But it is, I checked the way the svelte-webpack framework works.
It means it won't be possible to supply builder
options to this framework, because they're all sent to the svelte-loader. @JReinhold I think we need to change this quickly, especially since it'll be a breaking change.
d4b88d8
to
f157699
Compare
b6d7fcc
to
07bb9b9
Compare
f157699
to
c23294a
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.
@yannbf , left one small item that we should also consider regarding NextJs that I would like your input on, as you're already doing this fantastic body of work in updating the documentation. Let me know, and we'll go from there.
Once again, thanks for the assist on this, I appreciate it 🙏
export default { | ||
webpackFinal: async (baseConfig) => { | ||
const nextConfig = require('/path/to/next.config.js'); | ||
|
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.
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.
Sounds great, but definitely something for a separate issue. Would you mind creating an issue and tagging it with "nextjs"? Thanks!
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.
Sure, sounds good to me! I'll create the issue in a bit.
@yannbf, merge when able. I'll raise the issue with the NextJS folks and update the documentation in a separate pull request. |
Telescoping off of #20797
What I did
This PR updates every piece of documentation that touches
main.js
to use the new format. Please refer to #20797 for more context.How to test
Check whether the changes make sense or not.
Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]