Add babel-preset-latest support.#1027
Conversation
This adds the support for Exponentiation operator (**)
|
@arunoda I'm wondering why we wouldn't use |
|
@timneutkens we don't need it to the server/webpack. It only transform import/export syntax only. |
|
What about using |
| "babel-plugin-transform-object-rest-spread": "6.22.0", | ||
| "babel-plugin-transform-runtime": "6.22.0", | ||
| "babel-preset-es2015": "6.22.0", | ||
| "babel-preset-latest": "6.22.0", |
There was a problem hiding this comment.
It looks we can remove transform-async-to-generator which is included in this preset.
There was a problem hiding this comment.
Nice. It's comes with es2017 preset.
|
@thangngoc89 Our target environments is not only Node, but also browsers. So I think it wouldn't work :( |
|
@nkzawa you can config node and browser (based on caniuse database) separated but I didn't try it with next.js. If you have a chance, try babel-preset-env |
|
@thangngoc89 I tried. It works(with a latest node) and you need to provide non standard plugins manually we use. |
…ugin-latest It has es2017 preset and it comes with the above plugin.
|
Nice. Take this in :) |
Fixes #1026
This adds the support for Exponentiation operator (**)