Skip to content

Commit

Permalink
escape @ sigils in debug filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Jun 25, 2019
1 parent 9893435 commit d6af8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/compile/render_dom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6af8a7

Please sign in to comment.