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
keyattribute as it's written (we neither create nor editkeyattribute anymore). - Leave
classNameattribute as it's written (we don’t force converting ofclassNameattribute 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
mapand remove own validation of what we pass tomapfunction. - Remove
forandmaxlengthattribute aliases forhtmlForandmaxLength.
Added
- New option
classAttribute.
It allows more natural integration with CSS Modules.
See documentation.
Fixed
- Improve javascript transpiling.
Now we can useeachorifon root level of the template, or assign define any variable within the template. - Allow nested loops [#35].