@dotcom-tool-kit/webpack 3.1.0 → 3.1.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":"run-webpack.d.ts","sourceRoot":"","sources":["../src/run-webpack.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAA;AAK/E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,YAAY,GAAG,aAAa,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAe7G"}
1
+ {"version":3,"file":"run-webpack.d.ts","sourceRoot":"","sources":["../src/run-webpack.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAA;AAK/E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,YAAY,GAAG,aAAa,CAAA;IAClC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,cAAc,GAAG,iBAAiB,GAC1C,OAAO,CAAC,IAAI,CAAC,CAsBf"}
@@ -12,7 +12,13 @@ function runWebpack(logger, options) {
12
12
  if (options.watch) {
13
13
  args.push('--watch');
14
14
  }
15
- const child = (0, child_process_1.fork)(webpackCLIPath, args, { silent: true });
15
+ let { execArgv } = process;
16
+ if (process.allowedNodeEnvironmentFlags.has('--openssl-legacy-provider')) {
17
+ // webpack 4 uses a legacy hashing function that is no longer provided by
18
+ // default in OpenSSL 3: https://github.com/webpack/webpack/issues/14532
19
+ execArgv = [...execArgv, '--openssl-legacy-provider'];
20
+ }
21
+ const child = (0, child_process_1.fork)(webpackCLIPath, args, { silent: true, execArgv });
16
22
  (0, logger_1.hookFork)(logger, 'webpack', child);
17
23
  return (0, logger_1.waitOnExit)('webpack', child);
18
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcom-tool-kit/webpack",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "main": "lib",
5
5
  "description": "",
6
6
  "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",