Within my code, I am utilizing the destructuring operator. However, during the module build phase, I encountered an "Unexpected token" error. Any suggestions on how to resolve this issue without completely rewriting my code to avoid using the destructuring operator?
To run tests, I execute
vue-cli-service test:unit src/**/*.spec.js
.
Here is a snippet from my package.json:
...
"devDependencies": {
"@vue/cli-plugin-babel": "^3.12.1",
"@vue/cli-service": "^4.5.9",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-cli": "^6.26.0",
...
},
...