From 8c7031d41acc54310b65552105dbe13d68da0c0a Mon Sep 17 00:00:00 2001 From: Mark Hutchison <37601898+MoonstarCoding@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:09:28 -0400 Subject: [PATCH] bugfix: add question mark operator in problematic spot. --- utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.js b/utils.js index f5d28d9..e76a392 100644 --- a/utils.js +++ b/utils.js @@ -55,8 +55,8 @@ export const _parseImports = (module) => { default: null, named: token.specifiers.map((spec) => { return spec.imported === null - ? { name: spec.local.value, as: spec.local.value } - : { name: spec.imported.value, as: spec.local.value }; + ? { name: spec?.local?.value, as: spec?.local?.value } + : { name: spec?.imported?.value, as: spec?.local?.value }; // Special import styles and things like node_modules end up throwing a silent error here without the ? operator }), }; });