Skip to content

Releases: pugjs/babel-plugin-transform-react-pug

v7.0.1

19 Jun 07:22
Compare
Choose a tag to compare

Fixed

  • We now support spread operator in attributes not only in the beginning [#102]

    The following syntax is now available:

    button(type="button" ...props)

v7.0.0

08 Jan 18:27
Compare
Choose a tag to compare

Breaking changes

  • We now support babel@7!
  • Leave key attribute as it's written (we neither create nor edit key attribute anymore).
  • Leave className attribute as it's written (we don’t force converting of className 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 to map function.
  • Remove for and maxlength attribute aliases for htmlFor and maxLength.

Added

  • New option classAttribute.
    It allows more natural integration with CSS Modules.
    See documentation.

Fixed

  • Improve javascript transpiling.
    Now we can use each or if on root level of the template, or assign define any variable within the template.
  • Allow nested loops [#35].

v6.0.1

03 Sep 21:12
Compare
Choose a tag to compare

Fixed

  • Improve compatibility with babel@7

    Thanks @shirohana for PR #48