From 8ba428f472f6ed9d29ebf8f84e9e353c549951f1 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 25 Jun 2019 14:14:51 -0400 Subject: [PATCH] escape `@` sigils in debug filename --- src/compiler/compile/render_dom/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index e643b40a33e0..9fdaa0cbaaa0 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -28,7 +28,7 @@ export default function dom( const builder = new CodeBuilder(); if (component.compile_options.dev) { - builder.add_line(`const ${renderer.file_var} = ${JSON.stringify(component.file)};`); + builder.add_line(`const ${renderer.file_var} = ${component.file && stringify(component.file, { only_escape_at_symbol: true })};`); } const css = component.stylesheet.render(options.filename, !options.customElement);