This project provides a Neutrino preset for transforming decorators to be usable in most browsers. Uses the Babel Decorators transform which includes:
If you're using Mobx with React, you'll need decorators, class properties and the React neutrino presets. Here's a single preset that will take care of that: jke-neutrino-preset-react-mobx
Create a project with a package.json
like this.
{
"name": "myapp",
"version": "1.0.0",
"config": {
"presets": [
"neutrino-preset-decorators"
]
},
"scripts": {
"build": "neutrino build",
"start": "neutrino start"
},
"dependencies": {
},
"devDependencies": {
"neutrino": "^4.3.1",
"neutrino-preset-decorators": "0.1.1"
}
}
- neutrino: Used to run this project