Skip to content

fix: standardize webpack 5 dev server, fix MUI exports, and migrate to ESLint v10 flat config to restore npm run dev#45

Merged
leecalcote merged 4 commits intolayer5io:masterfrom
YASHMAHAKAL:restore-npm-run-dev
Apr 10, 2026
Merged

fix: standardize webpack 5 dev server, fix MUI exports, and migrate to ESLint v10 flat config to restore npm run dev#45
leecalcote merged 4 commits intolayer5io:masterfrom
YASHMAHAKAL:restore-npm-run-dev

Conversation

@YASHMAHAKAL
Copy link
Copy Markdown
Contributor

Description

Summary
This PR restores npm run dev to a clean, stable, and fast working state. It resolves breaking CLI crashes caused by deprecated Webpack 4 APIs, fixes over 300+ Material UI export warnings, and decouples ESLint from the HMR pipeline to comply with ESLint v10 standards. Zero source-code (src or HTML) files were modified.

Changes

  • Webpack 5 Optimization:
    • Removed deprecated Webpack 4 plugins (NamedModulesPlugin, HotModuleReplacementPlugin) and CLI properties (disableHostCheck, inline).
    • Added devServer.static to restore legacy root-directory serving, natively resolving the Cannot GET / HTML rendering error.
  • Fixed MUI v7 Module Coercion:
    • Removed the babel-loader rule that forced @mui|@emotion ESM exports into CommonJS formats. This restores native ESM static analysis and eliminates the 314+ "module has no exports" warnings.
  • ESLint v10 Architecture:
    • Converted deprecated .eslintrc config to the mandatory eslint.config.js Flat Config format using the built-in espree JSX parser.
    • Decoupled eslint-webpack-plugin from Webpack. This prevents hard crashes in the dev server (scopeManager.addGlobals is not a function) and completely protects the build pipeline from downstream Node v18 + ESLint v10 CLI formatting conflicts.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
@YASHMAHAKAL
Copy link
Copy Markdown
Contributor Author

YASHMAHAKAL commented Apr 9, 2026

@Rajesh-Nagarajan-11, @saurabhraghuvanshii take a look please

Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
Copy link
Copy Markdown
Member

@leecalcote leecalcote left a comment

Choose a reason for hiding this comment

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

Are we able to deeplink to a specific row in the table? It will have an example if we can. Or alternatively, if we’re able to link to the table with a predefined filter on which rows it displays, that will work, too..

@leecalcote
Copy link
Copy Markdown
Member

If we don’t have them now, a new issue could be opened to create some tests. If we do have some tests, an issue can be open to ensure that they run on open of a pull request.

@leecalcote leecalcote merged commit 7cb38d2 into layer5io:master Apr 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants