New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transform-decorators not working in babel 6 #2691

Closed
Mosho1 opened this Issue Oct 30, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@Mosho1

Mosho1 commented Oct 30, 2015

This:

@decorator
class Classy{}

Transpiles into:

"use strict";

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Classy = function Classy() {
  _classCallCheck(this, Classy);
};

Using .babelrc:

{
  "presets": ["es2015"],
  "plugins": ["transform-decorators"]
}
@jamiebuilds

This comment has been minimized.

Show comment
Hide comment
@jamiebuilds

jamiebuilds Oct 30, 2015

Contributor

Duplicate of #2645

Contributor

jamiebuilds commented Oct 30, 2015

Duplicate of #2645

@lock lock bot added the outdated label Jul 11, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.