Transpiling published packages
Some of Wax's packages use syntax that needs to be transpiled before it can be used in pure JS (JSX, decorators, parameter decorators, class properties). It's the same with PubSweet, and it's not that easy to set up once you have users - so now would be a good time.
A user of Wax's packages shouldn't have to compile Wax's packages at all.
For the record, these Babel plugins are required (on top of preset-react
):
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
'babel-plugin-parameter-decorator',