Skip to content

Commit

Permalink
Release v0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Dec 10, 2022
1 parent 12d4231 commit 7c82812
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.5 - 2022-12-10

- Update `magic-string` to 0.27.0

## 0.2.4 - 2022-12-01

- `link` `imagesrcset` should not be processed if have valid `itemprop` for `href` only
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "svelte-preprocess-import-assets",
"description": "Import assets in markup",
"version": "0.2.4",
"version": "0.2.5",
"license": "MIT",
"author": "Bjorn Lu",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function importAssets(
}

// e.g. <img src="./foo.png" /> => <img src="{___ASSET___0}" />
s.overwrite(attributeValue.start, attributeValue.end, `{${importName}}`)
s.update(attributeValue.start, attributeValue.end, `{${importName}}`)
}

let ignoreNextElement = false
Expand Down

0 comments on commit 7c82812

Please sign in to comment.