Skip to content

Commit 061ab38

Browse files
committed
chore: madrun: simplify
1 parent 07bc9e2 commit 061ab38

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.madrun.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@ const testEnv = defineEnv({
77
css: true,
88
});
99

10-
const is17 = /^v1[789]/.test(process.version);
11-
const is20 = process.version.startsWith('v2');
12-
13-
// fix for ERR_OSSL_EVP_UNSUPPORTED on node v17
14-
// flag '--openssl-legacy-provider' not supported
15-
// on earlier version of node.js
16-
//
17-
// https://stackoverflow.com/a/69746937/4536327
18-
const buildEnv = (is17 || is20) && {
19-
NODE_OPTIONS: '--openssl-legacy-provider',
10+
const buildEnv = {
2011
NODE_ENV: 'production',
2112
};
2213

0 commit comments

Comments
 (0)