Skip to content
Snippets Groups Projects
Commit c01635e9 authored by Alf Eaton's avatar Alf Eaton
Browse files

Use babel-preset-env and config instead of babelrc

parent daef2d75
No related branches found
No related tags found
No related merge requests found
{
"presets": [
"es2015",
"react"
]
}
\ No newline at end of file
......@@ -22,7 +22,6 @@
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-jest": "^20.0.3",
"babel-preset-es2015": "^6.24.1",
"babel-preset-env": "^1.6.0",
"babel-preset-minify": "^0.2.0",
"babel-preset-react": "^6.24.1",
......@@ -41,7 +40,10 @@
},
"jest": {
"moduleNameMapper": {
"\\.(css|less)$": "<rootDir>/test/setup/styleMock.js"
"\\.css$": "<rootDir>/test/setup/styleMock.js"
},
"transform": {
"\\.js$": "<rootDir>/test/config/transform.js"
}
},
"scripts": {
......
module.exports = require('babel-jest').createTransformer({
presets: [
'env',
'react',
'stage-2'
]
});
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment