const path = require("path");
const { merge } = require("webpack-merge");

const parts = require("./webpack.parts");

const PATHS = {
  build: path.join(__dirname, "static"),
  ssrDemo: path.join(__dirname, "src", "ssr.js"),
};

module.exports = merge([
  {
    mode: "production",
    entry: {
      index: PATHS.ssrDemo,
    },
    output: {
      path: PATHS.build,
      filename: "[name].js",
      libraryTarget: "umd",
      globalObject: "this",
    },
  },
  parts.loadJavaScript({ include: PATHS.ssrDemo }),
]);

@@ -63,25 +63,24 @@
 ck-merge%22);%0A
-%0A
 const parts 
@@ -114,119 +114,8 @@
 );%0A%0A
-const PATHS = %7B%0A  build: path.join(__dirname, %22static%22),%0A  ssrDemo: path.join(__dirname, %22src%22, %22ssr.js%22),%0A%7D;%0A%0A
 modu
@@ -189,29 +189,53 @@
  index: 
-PATHS.ssrDemo
+path.join(__dirname, %22src%22, %22ssr.js%22)
 ,%0A    %7D,
@@ -265,19 +265,38 @@
 th: 
-PATHS.build
+path.join(__dirname, %22static%22)
 ,%0A  
@@ -417,34 +417,8 @@
 ipt(
-%7B include: PATHS.ssrDemo %7D
 ),%0A%5D

Update ssr example