-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] the issue infinite recursion by collect of resources from de…
…pendency modules by usage in react app some big components with many thousands dependencies
- Loading branch information
Showing
12 changed files
with
3,717 additions
and
13 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [ | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Fix the issue by concatenateModules = true in react application | ||
|
||
Some big react components, such as `@material-ui/data-grid` from `material-ui.com` has more thousands dependencies (over 4000). | ||
In any combination of imports from same components come out the issue: _infinite recursion by collect of resources from dependency modules_. | ||
|
||
### Manual test (issue is fixed) | ||
|
||
Initial, run `npm install` to install dependencies. | ||
|
||
Build in production mode with webpack config `optimization.concatenateModules: true` | ||
|
||
run `./webpack-build.sh` | ||
|
||
|
||
Build in development mode with webpack config `optimization.concatenateModules: true` | ||
|
||
run `./webpack-build-dev.sh` |
Oops, something went wrong.