1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/.babelrc
Arunoda Susiripala 57e9a5e5f6 Find custom babel config location properly. (#969)
* Find custom babel config location properly.
Earlier we simply check for the .bablerc file in the dir.
But the actual logic is much complex.
Now we are using the babel's actual logic to find the
custom config location.

* Fix failing tests.
2017-02-03 14:33:35 +09:00

9 lines
241 B
Plaintext

{
"presets": [
// To let test apps(and Jest) to use Next's babel preset
"../babel",
// To transpile import statements into commonjs.
// That's because Jest(runs in Node.js) don't know how to handle them.
"es2015"
]
}