-
-
Notifications
You must be signed in to change notification settings - Fork 1.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] Cover webpack 4 support in migration guide #12710
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d2f619d
update migration guide
cherniavskii 3115813
update the guide
cherniavskii 5988475
update code snippet
cherniavskii 5f09d38
add webpack 4 sections to other migration guides
cherniavskii 2ad15c2
plugin => preset
cherniavskii 1843056
add comments
cherniavskii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 would be more explicit here. I guess nobody wants to do this to the license and the community package, they always want either to add some commercial package or skip the license.
I see 4 potential approaches:
just add a sentence (the one I wrote is quite bad)
list the 3 cases (
@mui/x-data-grid
|@mui/x-data-grid
+@mui/x-data-grid-pro
+@mui/x-license
|@mui/x-data-grid
+@mui/x-data-grid-pro
+@mui/x-data-grid-premium
|@mui/x-license
)list all the packages but add a small
// (only needed for pro and premium users)
and// (only needed for pro users)
after thepath.resolve(...)
of each commercial package.list all the packages even if they are not useful, I guess they do no harm and make sure people don't have nasty bugs if they buy a license in the future.
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.
If they only use the community package, the license package won't be installed, so there's no harm in having it there.
I would rather keep the universal snippet that would work for every plan.
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 do we agree that your snippet do not include the pro and premium packages and that can be problematic?
Or does
node_modules/@mui/x-data-grid
also matchnode_modules/@mui/x-data-grid-pro
? In which case maybe just a comment saying that it does would be interesting.Basically, just by reading the code snippet, the first thing I'd like to do as a pro user is to add
-pro
on the grid package line, and that is wrong because it will stop transpiling the community package, which is always needed.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 tested the Pro and Premium packages with this snippet and it worked.
I will check again to make sure it does work, and add a comment if that's the case 👍🏻
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 confirm that
@mui/x-data-grid
matches all data grid packages.I'll add a comment about that.
https://stackblitz.com/edit/mui-bug-reproduction-lkkagp?file=webpack.config.js
https://stackblitz.com/edit/mui-bug-reproduction-6xhapg?file=webpack.config.js