neutrino-preset-decorators
v0.1.2
Published
Neutrino preset for using the newer decorators syntax.
Downloads
1
Maintainers
Readme
neutrino-preset-decorators
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
Usage
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"
}
}
Peer dependencies
- neutrino: Used to run this project