Skip to content
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] Fix Pigment CSS migration content #43217

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp changed the title [docs] Fix pigment migration content [docs] Fix Pigment CSS migration content Aug 7, 2024
@aarongarciah aarongarciah added the docs Improvements or additions to the documentation label Aug 7, 2024
@mui-bot
Copy link

mui-bot commented Aug 7, 2024

Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of small comments.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly related to this PR

Q: any particular reason to display the Next.js config in .mjs and .js and Vite only in .js?

Next.js Vite
Screenshot 2024-08-07 at 13 10 41 Screenshot 2024-08-07 at 13 10 33

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, Vite should have vite.config.ts too.

Copy link
Member Author

@siriwatknp siriwatknp Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out either vite.config.mjs or vite.config.js, the content will be the same. I updated to mention the file pattern instead:

- Next, open vite config file, usually named `vite.config.js`, and add the plugin:
+ Next, open vite config file, usually named `vite.config.mjs` or `vite.config.js`, and add the plugin:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So next.config.js uses require but vite.config.js uses import?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, vite.config.js supports ESM but next.config.js requires commonjs.

Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. There's an open question in 4086c20#r1706823545 but I think we can move forward.

…ent-css.md

Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants