vite-imagetools
Advanced tools
Comparing version 6.1.0 to 6.2.0
@@ -33,3 +33,3 @@ import { basename, extname } from 'node:path'; | ||
async load(id) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j; | ||
if (!filter(id)) | ||
@@ -124,4 +124,4 @@ return null; | ||
return dataToEsm(await outputFormat(outputMetadatas), { | ||
namedExports: (_g = (_f = viteConfig.json) === null || _f === void 0 ? void 0 : _f.namedExports) !== null && _g !== void 0 ? _g : true, | ||
compact: (_h = !!viteConfig.build.minify) !== null && _h !== void 0 ? _h : false, | ||
namedExports: (_h = (_f = pluginOptions.namedExports) !== null && _f !== void 0 ? _f : (_g = viteConfig.json) === null || _g === void 0 ? void 0 : _g.namedExports) !== null && _h !== void 0 ? _h : true, | ||
compact: (_j = !!viteConfig.build.minify) !== null && _j !== void 0 ? _j : false, | ||
preferConst: true | ||
@@ -128,0 +128,0 @@ }); |
@@ -67,7 +67,13 @@ import type { TransformFactory, OutputFormat, resolveConfigs } from 'imagetools-core'; | ||
/** | ||
* Wether to remove potentially private metadata from the image, such as exif tags etc. | ||
* Whether to remove potentially private metadata from the image, such as exif tags etc. | ||
* @default true | ||
*/ | ||
removeMetadata: boolean; | ||
/** | ||
* Whether to generate named exports. | ||
* Takes precedence over Vite's `json.namedExports` | ||
* @default undefined | ||
*/ | ||
namedExports?: undefined; | ||
} | ||
export {}; |
{ | ||
"name": "vite-imagetools", | ||
"description": "Load and transform images using a toolbox of import directives!", | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"type": "module", | ||
@@ -44,3 +44,3 @@ "types": "dist/index.d.ts", | ||
"jsdom": "^22.1.0", | ||
"picomatch": "^2.3.1", | ||
"picomatch": "^3.0.0", | ||
"rollup": "^4.0.0", | ||
@@ -47,0 +47,0 @@ "sharp": "^0.32.4", |
@@ -37,6 +37,2 @@ # vite-imagetools | ||
``` | ||
yarn add -D vite-imagetools | ||
``` | ||
## Usage | ||
@@ -43,0 +39,0 @@ |
Sorry, the diff of this file is not supported yet
32720
231
196