mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
e0f71d8448
Here we don't use the full capabilities of babel-preset-env. But it's recommended to use it without browser configs as a substitute for babel-preset-latest. That's why we did this.
20 lines
260 B
Plaintext
20 lines
260 B
Plaintext
{
|
|
"presets": [
|
|
"env",
|
|
"react"
|
|
],
|
|
"plugins": [
|
|
"transform-object-rest-spread",
|
|
"transform-class-properties",
|
|
"transform-runtime"
|
|
],
|
|
"env": {
|
|
"test": {
|
|
"presets": [
|
|
"es2015",
|
|
"./babel"
|
|
]
|
|
}
|
|
}
|
|
}
|