mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
fix traced warnings from unexpected token (#5638)
* fix traced warnings from unexpected token * Fixed styling
This commit is contained in:
parent
40478e85c9
commit
477a143307
1 changed files with 6 additions and 0 deletions
|
@ -43,6 +43,12 @@ export async function copyDependenciesToFunction({
|
|||
`[@astrojs/vercel] The module "${module}" inside the file "${file}" couldn't be resolved. This may not be a problem, but it's worth checking.`
|
||||
);
|
||||
}
|
||||
}
|
||||
// parse errors are likely not js and can safely be ignored,
|
||||
// such as this html file in "main" meant for nw instead of node:
|
||||
// https://github.com/vercel/nft/issues/311
|
||||
else if (error.message.startsWith('Failed to parse')) {
|
||||
continue;
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue