I am getting this error when running a javascript file from inside using code runner.
(function (exports, require, module, __filename, __dirname) { import Vue from 'vue'
^^^
SyntaxError: Unexpected identifier
I do have a jsconfig.json
file in the root of my project directory which includes
{
"compilerOptions": {
"target": "es6"
}
}
and my code runner configuration is simply
"code-runner.executorMap": {
"javascript": "node --no-warnings"
}
The only line of code in the test script is import Vue from 'vue'
How can i use es6 imports in vscode?