Skip to content

Commit 1be483b

Browse files
committed
fix: 🐛 warn when global attr is used without potcss
1 parent 2683fda commit 1be483b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/autoProcess.ts

+4
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ export function sveltePreprocess(
272272

273273
code = transformed.code;
274274
map = transformed.map;
275+
} else if ('global' in attributes) {
276+
console.warn(
277+
`[svelte-preprocess] 'global' attribute found, but 'postcss' is not installed.`,
278+
);
275279
}
276280

277281
return { code, map, dependencies };

0 commit comments

Comments
 (0)