mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
No comments allowed in JSON
This commit is contained in:
parent
70f02ea8af
commit
009dc90b4a
12
.babelrc
12
.babelrc
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
"presets": ["latest", "react"],
|
"presets": [
|
||||||
|
"latest",
|
||||||
|
"react"
|
||||||
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"transform-object-rest-spread",
|
"transform-object-rest-spread",
|
||||||
"transform-class-properties",
|
"transform-class-properties",
|
||||||
|
@ -7,14 +10,13 @@
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"test-build": {
|
"test-build": {
|
||||||
"plugins": ["istanbul"]
|
"plugins": [
|
||||||
|
"istanbul"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"presets": [
|
"presets": [
|
||||||
// To transpile import statements into commonjs.
|
|
||||||
// That's because Jest(runs in Node.js) don't know how to handle them.
|
|
||||||
"es2015",
|
"es2015",
|
||||||
// To let test apps(and Jest) to use Next's babel preset
|
|
||||||
"./babel"
|
"./babel"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue