Skip to content

Commit

Permalink
Fix: add "CSS" to noExternal hint (withastro#3426)
Browse files Browse the repository at this point in the history
* chore: add "CSS" to noExternal hint

* chore: changeset
  • Loading branch information
bholmesdev authored May 24, 2022
1 parent 9dedcba commit 55a5c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const incompatiblePackages = {
const incompatPackageExp = new RegExp(`(${Object.keys(incompatiblePackages).join('|')})`);

function generateHint(err: ErrorWithMetadata): string | undefined {
if (/Unknown file extension \"\.(jsx|vue|svelte|astro)\" for /.test(err.message)) {
if (/Unknown file extension \"\.(jsx|vue|svelte|astro|css)\" for /.test(err.message)) {
return 'You likely need to add this package to `vite.ssr.noExternal` in your astro config file.';
} else {
const res = incompatPackageExp.exec(err.stack);
Expand Down

0 comments on commit 55a5c49

Please sign in to comment.