1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/.babelrc
Arunoda Susiripala 00e7a29731 Move the test babel setup to the main babelrc file. (#1163)
* Move the test babel setup to the main babelrc file.

* Add es2015 preset.
2017-02-16 00:43:31 +05:30

23 lines
509 B
Plaintext

{
"presets": ["latest", "react"],
"plugins": [
"transform-object-rest-spread",
"transform-class-properties",
"transform-runtime"
],
"env": {
"test-build": {
"plugins": ["istanbul"]
},
"test": {
"presets": [
// To transpile import statements into commonjs.
// That's because Jest(runs in Node.js) don't know how to handle them.
"es2015",
// To let test apps(and Jest) to use Next's babel preset
"./babel"
]
}
}
}