From 9cb5cb2636cdafaa6254316c812707146abcf43d Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Fri, 12 Aug 2022 13:40:20 -0500 Subject: [PATCH] fix: remove .jsx before resolving --- packages/astro/src/core/app/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts index d8b003b52c32c..743c1478e1700 100644 --- a/packages/astro/src/core/app/index.ts +++ b/packages/astro/src/core/app/index.ts @@ -155,6 +155,9 @@ export class App { scripts, renderers, async resolve(specifier: string) { + if (specifier.endsWith('.jsx')) { + specifier = specifier.slice(0, -4) + } if (!(specifier in manifest.entryModules)) { throw new Error(`Unable to resolve [${specifier}]`); }