sku@15.13.0
Minor Changes
-
webpack: Add support for Vite-style query parameters when importing SVG files (#1538)To support migration from webpack to Vite, SVG imports in webpack now support the same
raw,inlineandurlquery parameters as Vite. This allows you to specify how the SVG should be imported: as a raw string, a base64 data URL, or an asset URL. See the image asset docs for more information.If your application is still using webpack, it is recommended to run the following codemod to automatically migrate all SVG imports to use the
rawquery parameter:pnpm dlx @sku-lib/codemod svg-import-query-param .This will ensure consistent SVG import behaviour when the time comes to migrate your application to Vite. The
urlandinlinequery parameters can also be used, however they aren't a drop-in replacement for the existing import behaviour (i.e. without any query paramters).
Patch Changes
-
vite: Align asset inline limit with webpack (#1538)To align with sku's webpack config, image assets imported in a Vite app that are smaller than 10,000 bytes will now be inlined as base64-encoded
dataURLs. Previously the limit was 4,096 bytes. -
vocab: SetprojectRootin vocab config to fix crash withtinyglobby@0.2.16(#1542)