Skip to content

Release 0.3.6

Compare
Choose a tag to compare
@Josh-McFarlin Josh-McFarlin released this 14 Feb 19:10
· 139 commits to master since this release

Added

  • Added an optional fallbackTransformer parameter to LoaderConfig. Set to pureTransformer by default, this option lets you choose which transformer the loader will fall back to if your custom transformer fails or if the content type is not supported.
  • Added an optional skipFormats parameter to LoaderConfig. This is a set of mime types that should be returned without transformation. Defaults to Set([MimeType.SVG]).

Changed

  • Made null a valid option for the transformer parameter of LoaderConfig. If this parameter is set to null, image transformation will be skipped.

Docs

  • Added documentation for LoaderConfig parameters: defaultOptions, redirectOnFail, and skipFormats.
  • Added default (pureTransformer) supported file types to documentation.