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.
npm install ssr-webpackNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generates a client-side SSR webpack config with React plugin and environment variable injection.
Install Node.js 20 or later.
Call srrWebpack() and await the result, not require('ssr-webpack') directly.Update to @ssr/plugin-* packages and use new API.
Migrate overrides to chainWebpack callback.
Add 'ssr-plugin-vue' to dependencies and import VueSSR plugin.
Install package: npm install ssr-webpack@latest
Use import srrWebpack from 'ssr-webpack' (ESM) or require('ssr-webpack').defaultUpgrade Node to >= 20 and retry.