Skip to content

Commit 77b3fd4

Browse files
committed
Disable lazyNodeHardenFlags in Windows again
1 parent 3933487 commit 77b3fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ const lazyNmBinPath = () =>
252252
// https://nodejs.org/en/learn/getting-started/security-best-practices
253253
const lazyNodeHardenFlags = () =>
254254
// The '@rollup/plugin-replace' will replace "process.env[INLINED_SOCKET_CLI_SENTRY_BUILD]".
255-
process.env[INLINED_SOCKET_CLI_SENTRY_BUILD]
255+
// Lazily access constants.WIN32.
256+
process.env[INLINED_SOCKET_CLI_SENTRY_BUILD] || constants.WIN32
256257
? []
257258
: // We have contributed the following patches to our dependencies to make
258259
// Node's --frozen-intrinsics workable.

0 commit comments

Comments
 (0)