Skip to content

Commit 6615b19

Browse files
author
arggh
committed
Fix style preprocessor return value
It is now compatible with both version before and after 3.30.0 sveltejs/svelte#5584
1 parent 53f0039 commit 6615b19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MelteCompiler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,10 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
360360
},
361361
style: async ({ content, attributes }) => {
362362
if (this.postcss && (!attributes.lang || attributes.lang === 'postcss')) {
363+
const { css: code } = await this.postcss.process(content, { from: undefined });
364+
363365
return {
364-
code: await this.postcss.process(content, { from: undefined })
366+
code
365367
};
366368
}
367369
}

0 commit comments

Comments
 (0)