Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.25 KB

File metadata and controls

53 lines (39 loc) · 1.25 KB

Migration guide

This document serves as a migration guide for webpack-dev-server@6.0.0.

⚠ Breaking Changes

  • Minimum supported Node.js version is 20.9.0.

  • Support for SockJS in the WebSocket transport has been removed. Now, only native WebSocket is supported, or custom client and server implementations can be used.

  • The options for passing to the proxy have changed. Please refer to the http-proxy-middleware migration guide for details.

  • Remove support for the spdy server type. Use the http2 server type instead; however, since Express does not work correctly with it, a custom server (e.g., Connect or Hono) should be used.

    v4:

    module.exports = {
      // ...
      devServer: {
        server: "spdy",
      },
    };

    v5:

    const connect = require("connect");
    
    module.exports = {
      // ...
      devServer: {
        server: {
          server: "http2",
          app: () => connect(),
        },
      },
    };

Deprecations

  • The static methods internalIP and internalIPSync were removed. Use findIp instead.

    v4:

    const ip = Server.internalIP("v4");

    v5:

    const ip = Server.findIp("v4", true);