Fix astro:assets
SSR error (#7034)
This commit is contained in:
parent
50bf66e4df
commit
c009970333
2 changed files with 7 additions and 0 deletions
5
.changeset/green-chefs-build.md
Normal file
5
.changeset/green-chefs-build.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix `astro:assets` SSR error
|
|
@ -58,6 +58,8 @@ const ONLY_DEV_EXTERNAL = [
|
||||||
'shiki',
|
'shiki',
|
||||||
// Imported by `@astrojs/prism` which exposes `<Prism/>` that is processed by Vite
|
// Imported by `@astrojs/prism` which exposes `<Prism/>` that is processed by Vite
|
||||||
'prismjs/components/index.js',
|
'prismjs/components/index.js',
|
||||||
|
// Imported by `astro/assets` -> `packages/astro/src/core/logger/core.ts`
|
||||||
|
'string-width',
|
||||||
];
|
];
|
||||||
|
|
||||||
/** Return a common starting point for all Vite actions */
|
/** Return a common starting point for all Vite actions */
|
||||||
|
|
Loading…
Reference in a new issue