* add transform-class-properties to stage 3, set spec mode to default * update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
25 lines
482 B
JavaScript
25 lines
482 B
JavaScript
export default (param => {
|
|
var _class, _temp;
|
|
|
|
return _temp = _class = function () {
|
|
function App() {
|
|
babelHelpers.classCallCheck(this, App);
|
|
}
|
|
|
|
babelHelpers.createClass(App, [{
|
|
key: "getParam",
|
|
value: function getParam() {
|
|
return param;
|
|
}
|
|
}]);
|
|
return App;
|
|
}(), Object.defineProperty(_class, "props", {
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
prop1: 'prop1',
|
|
prop2: 'prop2'
|
|
}
|
|
}), _temp;
|
|
});
|