We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05d6b9b commit 1ccae67Copy full SHA for 1ccae67
lib/internal/modules/helpers.js
@@ -2,6 +2,7 @@
2
3
const {
4
ArrayPrototypeForEach,
5
+ ArrayPrototypePush,
6
ObjectDefineProperty,
7
ObjectFreeze,
8
ObjectPrototypeHasOwnProperty,
@@ -85,7 +86,7 @@ function initializeCjsConditions() {
85
86
...userConditions,
87
];
88
if (getOptionValue('--require-module')) {
- cjsConditionsArray.push('module-sync');
89
+ ArrayPrototypePush(cjsConditionsArray, 'module-sync');
90
}
91
ObjectFreeze(cjsConditionsArray);
92
cjsConditions = new SafeSet(cjsConditionsArray);
0 commit comments