Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
ematipico and bluwy authored Oct 9, 2024
1 parent 0f9a135 commit 8f72613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/mean-bags-shave.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'astro': patch
---

Fixed .mts astro config files not reloading automatically
Fixes a bug where `astro.config.mts` and `astro.config.cts` weren't reloading the dev server upon modifications.
2 changes: 1 addition & 1 deletion packages/astro/src/core/dev/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function createRestartedContainer(
return newContainer;
}

const configRE = /.*astro.config.(?:mjs|mts|cjs|js|ts)$/;
const configRE = /.*astro.config.(?:mjs|mts|cjs|cts|js|ts)$/;

function shouldRestartContainer(
{ settings, inlineConfig, restartInFlight }: Container,
Expand Down

0 comments on commit 8f72613

Please sign in to comment.