Skip to content

Commit

Permalink
fix: content-module-template build extension
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Oct 20, 2023
1 parent 9515d18 commit f57f386
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/astro/src/content/vite-plugin-content-virtual-mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ function getContentExtension(index: number) {
}
}

if (index === 0) {
return undefined;
}
if (index === 1) {
return ``
}

if (index === 2) {
return `.entry.mjs`
}
Expand Down Expand Up @@ -155,7 +148,8 @@ export async function generateLookupMap({
readdirSync: fs.readdirSync.bind(fs),
},
}
);
)


// Run 10 at a time to prevent `await getEntrySlug` from accessing the filesystem all at once.
// Each await shouldn't take too long for the work to be noticably slow too.
Expand Down

0 comments on commit f57f386

Please sign in to comment.