mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 17:24:10 +00:00
Fix build warnings: add isImageFile util, exclude heavy components
from eager glob, clean up dynamic import conflicts - Add missing isImageFile() to format-money utils - Exclude BaseMultiselect, InvoicePublicPage, InvoiceInformationCard from eager glob in global-components.ts using negative patterns - Short-circuit English locale in i18n to avoid redundant dynamic import - Only en.json warning remains (intentional: English bundled inline) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -76,6 +76,13 @@ export function formatMoney(
|
||||
* @param currency - Currency configuration used for parsing
|
||||
* @returns Amount in cents
|
||||
*/
|
||||
/**
|
||||
* Check if a MIME type represents an image file.
|
||||
*/
|
||||
export function isImageFile(mimeType: string): boolean {
|
||||
return mimeType.startsWith('image/')
|
||||
}
|
||||
|
||||
export function parseMoneyCents(
|
||||
formattedAmount: string,
|
||||
currency: CurrencyConfig = DEFAULT_CURRENCY
|
||||
|
||||
Reference in New Issue
Block a user