mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
bdcb0f7828
next/babel doesn't transpile import/export. So, we need to do it explicitly, but only for test env.
16 lines
319 B
Plaintext
16 lines
319 B
Plaintext
{
|
|
"env": {
|
|
"development": {
|
|
"presets": ["next/babel"]
|
|
},
|
|
"production": {
|
|
"presets": ["next/babel"]
|
|
},
|
|
"test": {
|
|
// next/babel does not transpile import/export syntax.
|
|
// So, using es2015 in the beginning will fix that.
|
|
"presets": ["es2015", "next/babel"]
|
|
}
|
|
}
|
|
}
|