Skip to content

Commit

Permalink
Old node
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 5, 2025
1 parent d4a3dff commit d9c6f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ function pluginToggleBooleanFlag(
}
},
ImportDeclaration(path) {
if (!path.node.attributes?.length) return;
if (!path.node.attributes) return;

/** @type {null | import("@babel/core").NodePath<import("@babel/core").types.ImportAttribute>} */
const attribute = path
Expand Down

0 comments on commit d9c6f6c

Please sign in to comment.