From d1d61e9b48c9bee30429e72534ac0e0fb0a17f41 Mon Sep 17 00:00:00 2001 From: Westbrook Johnson Date: Wed, 22 Feb 2023 10:23:15 -0500 Subject: [PATCH] Fix falsey fallback --- packages/dev-server-rollup/src/rollupAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dev-server-rollup/src/rollupAdapter.ts b/packages/dev-server-rollup/src/rollupAdapter.ts index 67e5cc3132..a0b998c488 100644 --- a/packages/dev-server-rollup/src/rollupAdapter.ts +++ b/packages/dev-server-rollup/src/rollupAdapter.ts @@ -209,7 +209,7 @@ export function rollupAdapter( result = await idResolver.call(rollupPluginContext, resolvableImport, filePath, { ...resolveOptions, assertions: { - ...(resolveOptions?.assertions || []), + ...(resolveOptions?.assertions as Record || {}), }, isEntry: false, });