mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
00e7a29731
* Move the test babel setup to the main babelrc file. * Add es2015 preset.
23 lines
509 B
Plaintext
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"
|
|
]
|
|
}
|
|
}
|
|
}
|