lazyInitDevMiddleware = () => {
      if (!this.middleware) {
        const webpackDevMiddleware = require("webpack-dev-middleware");

        // middleware for serving webpack bundle
        /** @type {import("webpack-dev-middleware").API<Request, Response>} */
        this.middleware = webpackDevMiddleware(
          this.compiler,
          this.options.devMiddleware,
        );
      }

      return this.middleware;
    }
@param {Request} req
@param {Response} res
@param {NextFunction} next
@returns {void}