I’m having a hard time finding a concrete answer on using static properties in Meteor. Is there any way to opt into the ES7 static properties? (besides using webpack)
eg
class Baz extends React.Component {
static propTypes = {
foo: t.string,
bar: t.string.isRequired,
};
....
}
Also semi related I would like to try decorators with @observable for mobx but it also seems like these are unsupported?
Of course, you can do this by including this within a .babelrc file which is at the root of your project, which should be a more flexible way, additionally giving you the ability to use that on your local packages, as opposed to including it within package.json which only provides this to your non-package code.