diff --git a/CHANGELOG.md b/CHANGELOG.md
index f2bfeab..084ed0a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/package.json b/package.json
index f8f9d64..2043bc7 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/src/index.ts b/src/index.ts
index c369bf0..886d552 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -62,7 +62,7 @@ export default function importAssets(
}
// e.g. =>
- s.overwrite(attributeValue.start, attributeValue.end, `{${importName}}`)
+ s.update(attributeValue.start, attributeValue.end, `{${importName}}`)
}
let ignoreNextElement = false