pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx
MIT License
807 stars 46 forks source link

Problems in Webstorm #131

Open lupenq opened 3 years ago

lupenq commented 3 years ago

WebStorm swears at syntax highlighting

Current issues:

image

image image image image image

lupenq commented 3 years ago

@ezhlobo hi, can you help please?

skotchpine commented 3 years ago

This seems like an issue closer to webstorm OR vue preprocessing that this plugin.

This isn't really just a template literal, it should probably look like jsx to an ide? How does webstorm normally adjust its advice for babel plugins / vue proprocessors?

skotchpine commented 3 years ago

I see two separate issues here:

  1. "unresolved imports" because pug is misunderstood as a template literal
  2. "pug is undefined", which sounds like a babel/compiler misconfiguration