Skip to content

Commit ef3c643

Browse files
style: fix lint issues in index.ts
1 parent bd55f28 commit ef3c643

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/repl/src/lib/workers/bundler

packages/repl/src/lib/workers/bundler/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ async function get_bundle(
376376
}
377377
);
378378
// add the CSS via injecting a style tag
379-
const style_id = result.css.code.match(/\.svelte-([a-z0-9]+)/)?.[0]?.slice(1) ?? ('svelte-' + name.replace(/[^a-zA-Z0-9]/g, '_'));
379+
const style_id =
380+
result.css.code.match(/\.svelte-([a-z0-9]+)/)?.[0]?.slice(1) ??
381+
'svelte-' + name.replace(/[^a-zA-Z0-9]/g, '_');
380382
result.js.code +=
381383
'\n\n' +
382384
`

0 commit comments

Comments
 (0)