bluewings/pug-as-jsx-loader

possible to use boolean shorthand?

Closed this issue · 2 comments

I tried using the boolean shorthand as referenced in the Pug and React documentation, but it doesn't seem to work.

For example: react-router's exact boolean property only works if I explicitly set it to {true}.

Boolean Is Not Applied

BrowserRouter
  Nav
  Route(path="/"        component="{Home   }" exact) // 🡸
  Route(path="/about"   component="{About  }"      )
  Route(path="/contact" component="{Contact}"      )

Boolean Is Applied

BrowserRouter
  Nav
  Route(path="/"        component="{Home   }" exact="{true}") // 🡸
  Route(path="/about"   component="{About  }"               )
  Route(path="/contact" component="{Contact}"               )

@FicoPrieto
I just modified it. Update the module to 1.0.85 to use 'boolean shorthand'.

Awesome, thanks!