From b70ad2aab7912b8ece5faa8f74365b9d7234c92d Mon Sep 17 00:00:00 2001 From: patrickpircher Date: Wed, 5 Jun 2024 09:42:47 +0200 Subject: [PATCH] fix prettier --- packages/commonjs/src/resolve-require-sources.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/commonjs/src/resolve-require-sources.js b/packages/commonjs/src/resolve-require-sources.js index b1466781c..0bc2d2b18 100644 --- a/packages/commonjs/src/resolve-require-sources.js +++ b/packages/commonjs/src/resolve-require-sources.js @@ -147,7 +147,10 @@ export function getRequireResolver(extensions, detectCyclesAndConditional, curre )) !== IS_WRAPPED_COMMONJS ); } - return (await getTypeForImportedModule(resolved, this.load.bind(this))) === IS_WRAPPED_COMMONJS; + return ( + (await getTypeForImportedModule(resolved, this.load.bind(this))) === + IS_WRAPPED_COMMONJS + ); }) ) ).some((shouldTransform) => shouldTransform); @@ -182,7 +185,12 @@ export function getRequireResolver(extensions, detectCyclesAndConditional, curre return { id: wrapId(childId, EXTERNAL_SUFFIX), allowProxy: false }; } parentMeta.requires.push({ resolved, isConditional }); - await analyzeRequiredModule(parentId, resolved, isConditional, rollupContext.load.bind(this)); + await analyzeRequiredModule( + parentId, + resolved, + isConditional, + rollupContext.load.bind(this) + ); return { id: childId, allowProxy: true }; }) );