Answer the question
In order to leave comments, you need to log in
Babel doesn't understand spread operator?
I have two folders:
my-project
popup
src
index.js
frontend
Answer the question
In order to leave comments, you need to log in
In .babelrc
add plugintransform-object-rest-spread
{
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}
]
],
"plugins": ["transform-object-rest-spread"],
"comments": false
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question