Skip to content

Pug templates no longer compile with an initial indent #9169

Closed
@KaelWD

Description

@KaelWD

Version

2.5.18

Reproduction link

https://github.com/KaelWD/vue-2.5.18-pug-compiler

Steps to reproduce

  • Clone repo
  • yarn
  • yarn build

What is expected?

Project should compile

What is actually happening?

Error: src/App.vue:2:1
    1| 
  > 2|   #app
-------^
    3|     div Hello World!
    4| 

unexpected token "indent"

Works if you downgrade to 2.5.17 or remove the initial indent in the template

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions