Skip to content

Commit c3b62a7

Browse files
committed
build(all) upgrade node from 16 -> 18
node 17 switched to openssl 3, which has some incompatibilities with older versions, see https://nodejs.org/en/blog/release/v17.0.0#openssl-3-0 webpack 4 relies on the older openssl version, only webpack 5 and newer uses openssl 3, see webpack/webpack#14532 (comment) webpack/webpack#14584 That's why we use the --openssl-legacy-provider node option when running webpack.
1 parent 8c62758 commit c3b62a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22

33
docker_defaults: &docker_defaults
44
docker:
5-
- image: circleci/node:16-stretch-browsers
5+
- image: cimg/node:18.14.2-browsers
66
working_directory: ~/mt-link-javascript-sdk
77

88
attach_workspace: &attach_workspace

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Moneytree",
1111
"license": "MIT",
1212
"scripts": {
13-
"build": "rm -rf dist && webpack",
13+
"build": "rm -rf dist && NODE_OPTIONS=--openssl-legacy-provider webpack",
1414
"prepareRelease": "npm run build && git add dist",
1515
"createChangelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
1616
"version": "npm run prepareRelease && npm run createChangelog",

0 commit comments

Comments
 (0)