Fix astro:assets SSR error (#7034)

This commit is contained in:
Bjorn Lu 2023-05-08 19:33:08 +08:00 committed by GitHub
parent 50bf66e4df
commit c009970333
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix `astro:assets` SSR error

View file

@ -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 */