mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
Fix mts reloads (#12160)
* Add mts file extension to configRE regex * Add changeset * Apply suggestions from code review Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
This commit is contained in:
parent
cf24d6922a
commit
c6fd1df695
2 changed files with 6 additions and 1 deletions
5
.changeset/mean-bags-shave.md
Normal file
5
.changeset/mean-bags-shave.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes a bug where `astro.config.mts` and `astro.config.cts` weren't reloading the dev server upon modifications.
|
|
@ -30,7 +30,7 @@ async function createRestartedContainer(
|
|||
return newContainer;
|
||||
}
|
||||
|
||||
const configRE = /.*astro.config.(?:mjs|cjs|js|ts)$/;
|
||||
const configRE = /.*astro.config.(?:mjs|mts|cjs|cts|js|ts)$/;
|
||||
|
||||
function shouldRestartContainer(
|
||||
{ settings, inlineConfig, restartInFlight }: Container,
|
||||
|
|
Loading…
Add table
Reference in a new issue