[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

feat: image type add bmp (#5921)

authored by

btea and committed by
GitHub
(Jun 19, 2024, 11:51 AM +0200) 98f9b7ab f33dabbe

+3 -2
+1
packages/vite-node/src/constants.ts
··· 1 1 export const KNOWN_ASSET_TYPES = [ 2 2 // images 3 3 'apng', 4 + 'bmp', 4 5 'png', 5 6 'jpe?g', 6 7 'jfif',
+2 -2
packages/vite-node/src/externalize.ts
··· 2 2 import { dirname, extname, join } from 'pathe' 3 3 import type { DepsHandlingOptions } from './types' 4 4 import { findNearestPackageData, isNodeBuiltin, slash } from './utils' 5 - import { KNOWN_ASSET_TYPES } from './constants' 5 + import { KNOWN_ASSET_RE } from './constants' 6 6 7 7 const BUILTIN_EXTENSIONS = new Set(['.mjs', '.cjs', '.node', '.wasm']) 8 8 ··· 18 18 // special Vite query strings 19 19 /[?&](init|raw|url|inline)\b/, 20 20 // Vite returns a string for assets imports, even if it's inside "node_modules" 21 - new RegExp(`\\.(${KNOWN_ASSET_TYPES.join('|')})$`), 21 + KNOWN_ASSET_RE, 22 22 ] 23 23 24 24 const depsExternal = [