feat: fix prettier errors

pull/16697/head
Hari 2 weeks ago
parent 08e9f1822f
commit 18f4b4d13d

@ -0,0 +1,5 @@
---
'svelte': patch
---
feat: added filename for css hasing

@ -73,7 +73,7 @@ const component_options = {
cssHash: fun(({ css, filename, name, hash }) => {
//either use extracted filename or component name
filename = filename ? filename.replace(/^.*[\\/]/, '') : name;
return `svelte-${hash(filename ?? css )}`;
return `svelte-${hash(filename ?? css)}`;
}),
// TODO this is a sourcemap option, would be good to put under a sourcemap namespace

Loading…
Cancel
Save