From 288a65c26ffbd009e2b342e8cbce0a9c983afb37 Mon Sep 17 00:00:00 2001 From: Kevin He Date: Fri, 28 Apr 2023 13:57:57 -0700 Subject: [PATCH] [v3] Add suffix to ssr build files (#1158) * split ssr build on local (#1155) * add suffix to ssr build files (#1157) --- packages/pwa-kit-dev/src/configs/webpack/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pwa-kit-dev/src/configs/webpack/config.js b/packages/pwa-kit-dev/src/configs/webpack/config.js index 8ea845ac5d..41ee540b57 100644 --- a/packages/pwa-kit-dev/src/configs/webpack/config.js +++ b/packages/pwa-kit-dev/src/configs/webpack/config.js @@ -361,7 +361,7 @@ const renderer = // We want to split the build on local development to reduce memory usage. // It is required to have a single entry point for the remote server. // See pwa-kit-runtime/ssr/server/build-remote-server.js render method. - filename: mode === development ? '[name].js' : 'server-renderer.js', + filename: mode === development ? '[name]-server.js' : 'server-renderer.js', libraryTarget: 'commonjs2' }, plugins: [