diff --git a/packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js b/packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js index 4023560b570b..b87f082de0ea 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js +++ b/packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js @@ -27,7 +27,7 @@ export function SvelteSelf(node, context) { const basename = filename === '(unknown)' ? 'Self.svelte' - : /** @type {string} */ (filename.split(/[\/]/).pop()); + : /** @type {string} */ (filename.split(/[/\\]/).pop()); w.svelte_self_deprecated(node, name, basename); }