Skip to content

Commit

Permalink
fix: remove .jsx before resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Aug 12, 2022
1 parent ae17481 commit 9cb5cb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/astro/src/core/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}]`);
}
Expand Down

0 comments on commit 9cb5cb2

Please sign in to comment.