rejigger decorator alias
This commit is contained in:
parent
a971ad7fd2
commit
61b57ea055
@ -185,7 +185,7 @@ class ClassTransformer {
|
|||||||
this.classRef = this.scope.generateUidIdentifier(classRef);
|
this.classRef = this.scope.generateUidIdentifier(classRef);
|
||||||
|
|
||||||
// this is so super calls and the decorators have access to the raw function
|
// this is so super calls and the decorators have access to the raw function
|
||||||
body.unshift(t.variableDeclaration("var", [
|
body.push(t.variableDeclaration("var", [
|
||||||
t.variableDeclarator(this.classRef, classRef)
|
t.variableDeclarator(this.classRef, classRef)
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,12 +9,11 @@ var _foo = require("foo");
|
|||||||
var _foo2 = babelHelpers.interopRequireWildcard(_foo);
|
var _foo2 = babelHelpers.interopRequireWildcard(_foo);
|
||||||
|
|
||||||
var Foo = (function () {
|
var Foo = (function () {
|
||||||
var _Foo = Foo;
|
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, _Foo);
|
babelHelpers.classCallCheck(this, _Foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _Foo = Foo;
|
||||||
Foo = _foo2["default"](Foo) || Foo;
|
Foo = _foo2["default"](Foo) || Foo;
|
||||||
return Foo;
|
return Foo;
|
||||||
})();
|
})();
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Foo = (function (_Bar) {
|
var Foo = (function (_Bar) {
|
||||||
var _Foo = Foo;
|
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, _Foo);
|
babelHelpers.classCallCheck(this, _Foo);
|
||||||
|
|
||||||
@ -10,6 +8,7 @@ var Foo = (function (_Bar) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
var _Foo = Foo;
|
||||||
Foo = bar(Foo) || Foo;
|
Foo = bar(Foo) || Foo;
|
||||||
return Foo;
|
return Foo;
|
||||||
})(Bar);
|
})(Bar);
|
||||||
@ -21,8 +20,8 @@ var Foo2 = (function (_Bar2) {
|
|||||||
babelHelpers.get(Object.getPrototypeOf(_class2.prototype), "constructor", this).call(this);
|
babelHelpers.get(Object.getPrototypeOf(_class2.prototype), "constructor", this).call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
var _class2 = _class;
|
|
||||||
babelHelpers.inherits(_class, _Bar2);
|
babelHelpers.inherits(_class, _Bar2);
|
||||||
|
var _class2 = _class;
|
||||||
_class = bar(_class) || _class;
|
_class = bar(_class) || _class;
|
||||||
return _class;
|
return _class;
|
||||||
})(Bar);
|
})(Bar);
|
||||||
|
|||||||
@ -1,60 +1,55 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Foo = (function () {
|
var Foo = (function () {
|
||||||
var _Foo = Foo;
|
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, _Foo);
|
babelHelpers.classCallCheck(this, _Foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _Foo = Foo;
|
||||||
Foo = foo(Foo) || Foo;
|
Foo = foo(Foo) || Foo;
|
||||||
return Foo;
|
return Foo;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
var Bar = (function () {
|
var Bar = (function () {
|
||||||
var _Bar = Bar;
|
|
||||||
|
|
||||||
function Bar() {
|
function Bar() {
|
||||||
babelHelpers.classCallCheck(this, _Bar);
|
babelHelpers.classCallCheck(this, _Bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _Bar = Bar;
|
||||||
Bar = bar(Bar) || Bar;
|
Bar = bar(Bar) || Bar;
|
||||||
Bar = foo(Bar) || Bar;
|
Bar = foo(Bar) || Bar;
|
||||||
return Bar;
|
return Bar;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
var Foo2 = (function () {
|
var Foo2 = (function () {
|
||||||
var _Foo2 = Foo;
|
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, _Foo2);
|
babelHelpers.classCallCheck(this, _Foo2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _Foo2 = Foo;
|
||||||
Foo = bar(Foo) || Foo;
|
Foo = bar(Foo) || Foo;
|
||||||
return Foo;
|
return Foo;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
var Bar2 = (function () {
|
var Bar2 = (function () {
|
||||||
var _Bar2 = Bar;
|
|
||||||
|
|
||||||
function Bar() {
|
function Bar() {
|
||||||
babelHelpers.classCallCheck(this, _Bar2);
|
babelHelpers.classCallCheck(this, _Bar2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _Bar2 = Bar;
|
||||||
Bar = bar(Bar) || Bar;
|
Bar = bar(Bar) || Bar;
|
||||||
Bar = foo(Bar) || Bar;
|
Bar = foo(Bar) || Bar;
|
||||||
return Bar;
|
return Bar;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
var Baz = (function () {
|
var Baz = (function () {
|
||||||
var _Baz = Baz;
|
|
||||||
|
|
||||||
function Baz(baz) {
|
function Baz(baz) {
|
||||||
babelHelpers.classCallCheck(this, _Baz);
|
babelHelpers.classCallCheck(this, _Baz);
|
||||||
|
|
||||||
this.baz = baz;
|
this.baz = baz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _Baz = Baz;
|
||||||
Baz = foo(Baz) || Baz;
|
Baz = foo(Baz) || Baz;
|
||||||
return Baz;
|
return Baz;
|
||||||
})();
|
})();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user