Created
May 25, 2017 20:44
-
-
Save zuzkins/dc366e6c8f729274921113a586c2b4ac to your computer and use it in GitHub Desktop.
Neutrino 5 react preset + babel-plugin-transform-class-properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const merge = require('deepmerge') | |
module.exports = neutrino => { | |
neutrino.config.module | |
.rule('compile') | |
.use('babel') | |
.tap(options => merge(options, { plugins: ['transform-class-properties'] })) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Neutrino 5 react preset with babel transfrom class props", | |
"version": "0.0.1", | |
"scripts": { | |
"start": "neutrino start ", | |
"build": "neutrino build" | |
}, | |
"dependencies": { | |
. | |
. | |
. | |
}, | |
"devDependencies": { | |
"babel-plugin-transform-class-properties": "^6.24.1", | |
"deepmerge": "^1.3.2", | |
"neutrino": "^5.8.0", | |
"neutrino-preset-react": "^5.8.0" | |
}, | |
"neutrino": { | |
"use": [ | |
"neutrino-preset-react", | |
"babel-transform-class-properties.js" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment