Skip to content

Commit 8ba428f

Browse files
committed
escape @ sigils in debug filename
1 parent 9893435 commit 8ba428f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/compile/render_dom/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function dom(
2828
const builder = new CodeBuilder();
2929

3030
if (component.compile_options.dev) {
31-
builder.add_line(`const ${renderer.file_var} = ${JSON.stringify(component.file)};`);
31+
builder.add_line(`const ${renderer.file_var} = ${component.file && stringify(component.file, { only_escape_at_symbol: true })};`);
3232
}
3333

3434
const css = component.stylesheet.render(options.filename, !options.customElement);

0 commit comments

Comments
 (0)