From 30a58ac3388a302843875ce41cf29a75d517bed1 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 19 Sep 2024 14:28:04 -0400 Subject: [PATCH] fix --- .../svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }