pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

We can't define variable and use it

ezhlobo opened this issue · comments

For example the following code will throw an error:

pug`
  - const i = 0
  h2= i
`

See live example:
https://codesandbox.io/s/j34wv68wyy

Sorry for the confusion, live example doesn't reflect the real transformation