Skip to content

Commit

Permalink
Merge pull request #4 from arggh/fix/style-preprocessing-svelte-versi…
Browse files Browse the repository at this point in the history
…on-compat

#3 Fix style preprocessing with Svelte versions 3.30.0 and beyond
  • Loading branch information
zodern authored Jul 23, 2021
2 parents 52750e3 + b2cdc53 commit 714f7e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MelteCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,10 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
style: async ({ content, attributes }) => {
if (this.postcss) {
if (attributes.lang == 'postcss') {
const { css: code } = await this.postcss.process(content, { from: undefined });

return {
code: await this.postcss.process(content, { from: undefined })
code
};
}
}
Expand Down

0 comments on commit 714f7e6

Please sign in to comment.