Skip to content

Commit e624465

Browse files
authored
Also processes markup in transpile. (#119)
Like how the Svelte compiler works, we should first process the markup, before we can process the script and style, to make sure we get a representative result.
1 parent b510e9b commit e624465

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/language-server/src/plugins/svelte/SvelteDocument.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ async function transpile(document: Document, preprocessors: PreprocessorGroup =
220220
let processedScript: Processed | undefined;
221221
let processedStyle: Processed | undefined;
222222

223+
preprocessor.markup = preprocessors.markup;
224+
223225
if (preprocessors.script) {
224226
preprocessor.script = async (args: any) => {
225227
const res = await preprocessors.script!(args);

0 commit comments

Comments
 (0)