@genesislcap/webpack-builder 14.114.0 → 14.114.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"devServer.d.ts","sourceRoot":"","sources":["../../src/config/devServer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiC7C,eAAO,MAAM,SAAS,QAAS,YAAY,KAAG,aAAa,CAAC,WAAW,CAkDtE,CAAC"}
1
+ {"version":3,"file":"devServer.d.ts","sourceRoot":"","sources":["../../src/config/devServer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiC7C,eAAO,MAAM,SAAS,QAAS,YAAY,KAAG,aAAa,CAAC,WAAW,CAqDtE,CAAC"}
@@ -31,13 +31,14 @@ const getServer = (isHTTPS = false) => {
31
31
  };
32
32
  const convertWsEndpointToHTTP = (endpoint = '', socketExt) => endpoint.replace(/^ws(s)?:\/\//, 'http$1://').replace(`/${socketExt}`, '');
33
33
  const devServer = (ctx) => {
34
- const { cli: { isDev, options: { open, https }, }, dirs: { cwd }, env: { isCI }, pkg, } = ctx;
34
+ const { cli: { isDev, options: { open, https }, }, dirs: { cwd }, env: { isCI }, pkg, config: { webpack }, } = ctx;
35
35
  if (!isDev) {
36
36
  return;
37
37
  }
38
38
  const port = getPort(pkg);
39
39
  const socketExt = process.env.SOCKET_EXT || 'gwf';
40
40
  const target = convertWsEndpointToHTTP(process.env.API_HOST, socketExt);
41
+ const devMiddleware = (webpack === null || webpack === void 0 ? void 0 : webpack.writeToDisk) ? { writeToDisk: true } : undefined;
41
42
  return {
42
43
  open: open && !isCI,
43
44
  historyApiFallback: true,
@@ -70,6 +71,7 @@ const devServer = (ctx) => {
70
71
  watch: true,
71
72
  },
72
73
  ],
74
+ devMiddleware,
73
75
  };
74
76
  };
75
77
  exports.devServer = devServer;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/webpack-builder",
3
3
  "description": "Webpack builder",
4
- "version": "14.114.0",
4
+ "version": "14.114.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "dev": "tsc -b ./tsconfig.json -w"
16
16
  },
17
17
  "dependencies": {
18
- "@genesislcap/build-kit": "14.114.0",
18
+ "@genesislcap/build-kit": "14.114.1",
19
19
  "@module-federation/dashboard-plugin": "2.6.5",
20
20
  "@pixability-ui/federated-types": "^0.2.0",
21
21
  "camel-case": "^4.1.2",
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "4097af698134c63074cd40436c3f151547978a28"
60
+ "gitHead": "c3a8894c9125182a29e5f26fd70baa08ecdc143b"
61
61
  }
@@ -44,6 +44,7 @@ export const devServer = (ctx: BuildContext): Configuration['devServer'] => {
44
44
  dirs: { cwd },
45
45
  env: { isCI },
46
46
  pkg,
47
+ config: { webpack },
47
48
  } = ctx;
48
49
 
49
50
  if (!isDev) {
@@ -52,6 +53,7 @@ export const devServer = (ctx: BuildContext): Configuration['devServer'] => {
52
53
  const port = getPort(pkg);
53
54
  const socketExt = process.env.SOCKET_EXT || 'gwf';
54
55
  const target = convertWsEndpointToHTTP(process.env.API_HOST, socketExt);
56
+ const devMiddleware = webpack?.writeToDisk ? { writeToDisk: true } : undefined;
55
57
  return {
56
58
  open: open && !isCI,
57
59
  historyApiFallback: true,
@@ -84,5 +86,6 @@ export const devServer = (ctx: BuildContext): Configuration['devServer'] => {
84
86
  watch: true,
85
87
  },
86
88
  ],
89
+ devMiddleware,
87
90
  };
88
91
  };