don't reassign decorated classes - fixes #1167

This commit is contained in:
Sebastian McKenzie
2015-04-07 09:54:14 -07:00
parent 96506f4249
commit 0ab1362893
4 changed files with 36 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
import foo from "foo";
@foo
export default class Foo {
}

View File

@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _foo = require("foo");
var _foo2 = babelHelpers.interopRequireWildcard(_foo);
var Foo = (function () {
function Foo() {
babelHelpers.classCallCheck(this, Foo);
}
Foo = _foo2["default"](Foo) || Foo;
return Foo;
})();
exports["default"] = Foo;
module.exports = exports["default"];