Fixes an issue with cssesc in dev mode when setting vite.ssr.noExternal: true (#12232)

* Fixes an issue with cssesc in dev mode when setting vite.noExternal: true

* Update dirty-bags-double.md
This commit is contained in:
Martin Trapp 2024-10-15 16:27:05 +02:00 committed by GitHub
parent 6df5bba870
commit ff68ba5e1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes an issue with cssesc in dev mode when setting `vite.ssr.noExternal: true`

View file

@ -71,6 +71,8 @@ const ONLY_DEV_EXTERNAL = [
'prismjs/components/index.js',
// Imported by `astro/assets` -> `packages/astro/src/core/logger/core.ts`
'string-width',
// Imported by `astro:transitions` -> packages/astro/src/runtime/server/transition.ts
'cssesc',
];
/** Return a base vite config as a common starting point for all Vite commands. */