Skip to content

Commit 278de4f

Browse files
chore: update sorcery (#571)
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 parent fdbbbb9 commit 278de4f

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"@types/sass": "^1.43.1",
9393
"detect-indent": "^6.1.0",
9494
"magic-string": "^0.27.0",
95-
"sorcery": "^0.10.0",
95+
"sorcery": "^0.11.0",
9696
"strip-indent": "^3.0.0"
9797
},
9898
"peerDependencies": {

pnpm-lock.yaml

Lines changed: 5 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/transformers/typescript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { dirname, isAbsolute, join, resolve } from 'path';
33
import ts from 'typescript';
44
import { compile } from 'svelte/compiler';
55
import MagicString from 'magic-string';
6-
import sorcery from 'sorcery';
6+
import { load } from 'sorcery';
77

88
import { throwTypescriptError } from '../modules/errors';
99
import { createTagRegex, parseAttributes, stripTags } from '../modules/markup';
@@ -236,7 +236,7 @@ async function concatSourceMaps({
236236
return sourceMapChain.sourcemaps[`${filename}.js`];
237237
}
238238

239-
const chain = await sorcery.load(`${filename}.js`, sourceMapChain);
239+
const chain = await load(`${filename}.js`, sourceMapChain);
240240

241241
return chain.apply();
242242
}

0 commit comments

Comments
 (0)