@dotcom-tool-kit/webpack 3.0.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.
- package/lib/run-webpack.d.ts.map +1 -1
- package/lib/run-webpack.js +7 -1
- package/package.json +8 -4
package/lib/run-webpack.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/lib/run-webpack.js
CHANGED
|
@@ -12,7 +12,13 @@ function runWebpack(logger, options) {
|
|
|
12
12
|
if (options.watch) {
|
|
13
13
|
args.push('--watch');
|
|
14
14
|
}
|
|
15
|
-
|
|
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.
|
|
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>",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"test": "cd ../../ ; npx jest --silent --projects plugins/webpack"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dotcom-tool-kit/error": "^3.
|
|
21
|
-
"@dotcom-tool-kit/logger": "^3.
|
|
22
|
-
"@dotcom-tool-kit/types": "^3.
|
|
20
|
+
"@dotcom-tool-kit/error": "^3.1.0",
|
|
21
|
+
"@dotcom-tool-kit/logger": "^3.1.0",
|
|
22
|
+
"@dotcom-tool-kit/types": "^3.1.0",
|
|
23
23
|
"webpack-cli": "^4.6.0",
|
|
24
24
|
"tslib": "^2.3.1"
|
|
25
25
|
},
|
|
@@ -39,5 +39,9 @@
|
|
|
39
39
|
],
|
|
40
40
|
"volta": {
|
|
41
41
|
"extends": "../../package.json"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": "16.x || 18.x",
|
|
45
|
+
"npm": "7.x || 8.x || 9.x"
|
|
42
46
|
}
|
|
43
47
|
}
|