mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
57e9a5e5f6
* 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.
9 lines
241 B
Plaintext
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"
|
|
]
|
|
} |