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 8c52014 commit 8e56cf1Copy full SHA for 8e56cf1
hook.js
@@ -367,10 +367,8 @@ function createHook (meta) {
367
}
368
369
// Node.js v21 renames importAssertions to importAttributes
370
- if (
371
- (context.importAssertions && context.importAssertions.type === 'json') ||
372
- (context.importAttributes && context.importAttributes.type === 'json')
373
- ) {
+ const importAttributes = context.importAttributes || context.importAssertions
+ if (importAttributes && importAttributes.type === 'json') {
374
return result
375
376
0 commit comments