Skip to content

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

v7.0.1

Choose a tag to compare

@ezhlobo ezhlobo released this 19 Jun 07:22

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

Choose a tag to compare

@ezhlobo ezhlobo released this 08 Jan 18:27

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

Choose a tag to compare

@ezhlobo ezhlobo released this 03 Sep 21:12

Fixed

  • Improve compatibility with babel@7

    Thanks @shirohana for PR #48