@sveltejs/enhanced-img
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "@sveltejs/enhanced-img", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Image optimization for your Svelte apps", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -114,3 +114,3 @@ /** @import { AST } from 'svelte/compiler' */ | ||
// the imports.size and incrementing the imports.size | ||
const name = '__IMPORTED_ASSET_' + imports.size + '__'; | ||
const name = imports.get(original_url) || '__IMPORTED_ASSET_' + imports.size + '__'; | ||
const new_markup = `<img ${serialize_img_attributes(content, node.attributes, { | ||
@@ -117,0 +117,0 @@ src: `{${name}}`, |
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
20575