Skip to content

build(deps): upgrade webpack-dev-server to v5.2.4 - #4274

Merged
erickzhao merged 2 commits into
mainfrom
claude/adoring-faraday-T5BFT
May 26, 2026
Merged

erickzhao merged 2 commits into
mainfrom
claude/adoring-faraday-T5BFT

Conversation

@erickzhao

Copy link
Copy Markdown
Member
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

Upgrades webpack-dev-server from v4.0.0 to v5.2.4 in both the root and webpack plugin package dependencies.

Changes:

  • Updated webpack-dev-server dependency to v5.2.4 in package.json and packages/plugin/webpack/package.json
  • Added ESLint disable comments in Config.ts and WebpackPlugin.ts to handle webpack-dev-server v5's CommonJS export pattern (export =), which requires the import/default rule to be disabled when esModuleInterop is enabled

The import statement changes are necessary because webpack-dev-server v5 uses CommonJS export = syntax rather than ES module exports, which can cause linting issues with the import/default rule.

Test Plan:

Existing tests pass with the updated dependency. The webpack plugin functionality remains unchanged as the public API of webpack-dev-server v5 is compatible with how it's being used in this codebase.

https://claude.ai/code/session_01BJULCvPjRZzh6voenUU4gN

dependabot Bot and others added 2 commits May 21, 2026 22:10
webpack-dev-server v5 ships as CommonJS with `export = Server` and no
ES default export. The default import still works under esModuleInterop
(tsc and runtime both resolve it), but eslint-plugin-import's
`import/default` rule flags the missing default. Suppress that rule on
the import lines so the lint-and-build CI job passes.

https://claude.ai/code/session_01BJULCvPjRZzh6voenUU4gN
@erickzhao
erickzhao requested a review from a team as a code owner May 22, 2026 00:34
@erickzhao erickzhao changed the title Upgrade webpack-dev-server to v5.2.4 build(deps): bump webpack-dev-server from 4.15.2 to 5.2.4 May 22, 2026
@erickzhao erickzhao changed the title build(deps): bump webpack-dev-server from 4.15.2 to 5.2.4 build(deps): upgrade webpack-dev-server to v5.2.4 May 22, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedwebpack-dev-server@​4.15.2 ⏵ 5.2.494 +1100 +410091100

View full report

@erickzhao
erickzhao added this pull request to the merge queue May 26, 2026
Merged via the queue into main with commit 975c5fc May 26, 2026
16 of 17 checks passed
@erickzhao
erickzhao deleted the claude/adoring-faraday-T5BFT branch May 26, 2026 17:09
MarshallOfSound pushed a commit that referenced this pull request Jul 1, 2026
build(deps): upgrade webpack-dev-server to v5.2.4 on next (#4084)

Bumps webpack-dev-server in @electron-forge/plugin-webpack from ^4.0.0 to
^5.2.4 to resolve the moderate advisory GHSA-9jgg-88mc-972h. Mirrors the
fix merged to main in #4274; re-applied manually because that commit does
not cherry-pick cleanly onto next.

The eslint-disable import/default suppression from #4274 is intentionally
omitted here: next has migrated linting from ESLint to oxlint, and the
import/default rule is not enabled in .oxlintrc.json, so oxlint reports no
error on the default `import WebpackDevServer from 'webpack-dev-server'`.


Claude-Session: https://claude.ai/code/session_0181gUdj5iDhqVyJjakQbuei

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants