babel/packages/babel-plugin-proposal-decorators
Nicolò Ribaudo b706e34fc8 [decorators] Correctly insert _initialize(this) after super(). (#8970)
* [decorators] Correctly insert `_initialize(this)` after `super()`.

This commit fixes to problem:
1) After `super();` statements, `_initialize(this)` was inserted without
   a trailing semicolon.
2) `(0, super())` causes an infinite recursion.

* Fix tests

* Add test
2018-11-06 21:58:09 -08:00
..
2018-09-28 18:19:38 -04:00

@babel/plugin-proposal-decorators

Compile class and object decorators to ES5

See our website @babel/plugin-proposal-decorators for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-proposal-decorators

or using yarn:

yarn add @babel/plugin-proposal-decorators --dev