Releases: pugjs/babel-plugin-transform-react-pug
Releases · pugjs/babel-plugin-transform-react-pug
v7.0.1
v7.0.0
Breaking changes
- We now support babel@7!
- Leave
key
attribute as it's written (we neither create nor editkey
attribute anymore). - Leave
className
attribute as it's written (we don’t force converting ofclassName
attribute into string anymore).
Now it's possible to use any tool to combine your classes. Most popular is classnames, and its automated version babel-plugin-classnames. - Convert loops into real
map
and remove own validation of what we pass tomap
function. - Remove
for
andmaxlength
attribute aliases forhtmlFor
andmaxLength
.
Added
- New option
classAttribute
.
It allows more natural integration with CSS Modules.
See documentation.
Fixed
- Improve javascript transpiling.
Now we can useeach
orif
on root level of the template, or assign define any variable within the template. - Allow nested loops [#35].