diff --git a/packages/astro/src/snowpack-logger.ts b/packages/astro/src/snowpack-logger.ts index a3dc2b534..2a349e89f 100644 --- a/packages/astro/src/snowpack-logger.ts +++ b/packages/astro/src/snowpack-logger.ts @@ -3,12 +3,13 @@ import { defaultLogLevel } from './logger.js'; const onceMessages = ['Ready!', 'watching for file changes'].map((str) => new RegExp(`\\[snowpack\\](.*?)${str}`)); -const neverWarn = new RegExp('(' - + /(run "snowpack init" to create a project config file.)|/.source - + /(astro\/dist\/internal\/__astro_component.js: Unscannable package import found.)|/.source - + /(Cannot call a namespace \('loadLanguages'\))|/.source - + /('default' is imported from external module 'node-fetch' but never used)/.source - + ')' +const neverWarn = new RegExp( + '(' + + /(run "snowpack init" to create a project config file.)|/.source + + /(astro\/dist\/internal\/__astro_component.js: Unscannable package import found.)|/.source + + /(Cannot call a namespace \('loadLanguages'\))|/.source + + /('default' is imported from external module 'node-fetch' but never used)/.source + + ')' ); export function configureSnowpackLogger(logger: typeof snowpackLogger) {