{"library":"ssr-webpack","title":"ssr-webpack","type":"library","description":"A framework-agnostic SSR webpack configuration for serverless deployment, supporting React (17/18/19) and Vue (2/3) with Vite, Webpack, or Rspack. Version 7.x (current 7.0.14) reduces dependency size by 2/3 and improves build speed 5-10x. Supports tight integration with Nest.js and Midway.js, and one-click deploy to Alibaba/Tencent Cloud Serverless. Actively maintained with weekly releases.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install ssr-webpack"],"cli":null},"imports":["import srrWebpack from 'ssr-webpack'","import type { ClientConfig } from 'ssr-webpack'","import type { ServerConfig } from 'ssr-webpack'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/zhangyuang/ssr","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ssr-webpack","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import srrWebpack from 'ssr-webpack';\nimport { ReactSSR } from 'ssr-plugin-react';\n\nconst config = await srrWebpack({\n  type: 'client',\n  chainWebpack: (chain) => {\n    chain.plugin('define').tap(args => [{\n      ...args[0],\n      'process.env.API_BASE': JSON.stringify(process.env.API_BASE ?? 'http://localhost:3000/api')\n    }]);\n  },\n  plugins: [\n    new ReactSSR()\n  ]\n});\n\n// Export for webpack (e.g., webpack-merge)\nexport default config;","lang":"typescript","description":"Generates a client-side SSR webpack config with React plugin and environment variable injection.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}