Skip to content

Commit

Permalink
chore: alphabetize
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 26, 2023
1 parent 2912523 commit 58f9e3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/transforms/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getProgressive } from './progressive.js'
import { getLossless } from './lossless.js'
import { FormatEnum } from 'sharp'

export const formatValues = ['avif', 'jpg', 'jpeg', 'png', 'heif', 'webp', 'tiff'] as const
export const formatValues = ['avif', 'heif', 'jpeg', 'jpg', 'png', 'tiff', 'webp'] as const

export type FormatValue = (typeof formatValues)[number]

Expand Down
16 changes: 8 additions & 8 deletions packages/vite/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { basename, extname } from 'node:path'
import { Plugin, ResolvedConfig } from 'vite'
import {
parseURL,
loadImage,
builtins,
resolveConfigs,
applyTransforms,
builtins,
builtinOutputFormats,
extractEntries,
generateImageID,
generateTransforms,
getMetadata,
generateImageID,
builtinOutputFormats,
loadImage,
parseURL,
urlFormat,
extractEntries,
resolveConfigs,
type Logger,
type OutputFormat,
type ProcessedImageMetadata
Expand All @@ -32,7 +32,7 @@ export type {
} from './types.js'

const defaultOptions: VitePluginOptions = {
include: /^[^?]+\.(heif|avif|jpeg|jpg|png|tiff|webp|gif)(\?.*)?$/,
include: /^[^?]+\.(avif|gif|heif|jpeg|jpg|png|tiff|webp)(\?.*)?$/,
exclude: 'public/**/*',
removeMetadata: true
}
Expand Down

0 comments on commit 58f9e3d

Please sign in to comment.