diff --git a/babel.config.js b/babel.config.js index 093bc1d1c239..5b0b419a627c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -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} */ const attribute = path