Syntaxerror On Spread Operator, While Using Babel Env Preset
I am trying to 'modernize' mern.io starter bolerplate by replacing babel es2015 and stage-0 presets with env. However, it seems that env preset does not recognize the following sni
Solution 1:
Object spread is not in the specification yet, it is currently in stage 3, which means that the env
preset won't provide this feature.
If you want to use this feature with Babel, you will need to add the babel-plugin-transform-object-rest-spread transform.
You can check the status of the ES proposals in this repo https://github.com/tc39/proposals
Post a Comment for "Syntaxerror On Spread Operator, While Using Babel Env Preset"