@sveltejs/enhanced-img
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "@sveltejs/enhanced-img", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Image optimization for your Svelte apps", | ||
@@ -10,2 +10,12 @@ "repository": { | ||
}, | ||
"keywords": [ | ||
"component", | ||
"enhanced", | ||
"image", | ||
"preprocessor", | ||
"plugin", | ||
"svelte", | ||
"sveltekit", | ||
"vite" | ||
], | ||
"license": "MIT", | ||
@@ -36,3 +46,3 @@ "homepage": "https://kit.svelte.dev", | ||
"vite": "^5.2.8", | ||
"vitest": "^1.5.0" | ||
"vitest": "^1.6.0" | ||
}, | ||
@@ -39,0 +49,0 @@ "scripts": { |
@@ -6,6 +6,6 @@ import path from 'node:path'; | ||
/** | ||
* @returns {Promise<import('vite').Plugin[]>} | ||
* @returns {import('vite').Plugin[]} | ||
*/ | ||
export async function enhancedImages() { | ||
const imagetools_instance = await imagetools_plugin(); | ||
export function enhancedImages() { | ||
const imagetools_instance = imagetools_plugin(); | ||
return !process.versions.webcontainer | ||
@@ -64,3 +64,3 @@ ? [image_plugin(imagetools_instance), imagetools_instance] | ||
async function imagetools_plugin() { | ||
function imagetools_plugin() { | ||
/** @type {Partial<import('vite-imagetools').VitePluginOptions>} */ | ||
@@ -67,0 +67,0 @@ const imagetools_opts = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19257