This is my first time giving Vue a spin. I used the Vue command line tool to generate the sample project with typescript. I set "sourceMap": true in the tsconfig.js. When running serve it does generate JavaScript source map for *.ts files. But the *.vue component, it does not generate a .js source map. There's no warnings or errors in the command line output. I want the JavaScript source maps of *.vue so WebStorm can hit breakpoints.
I initially didn't have "sourceMap": true in tsconfig.js. I verified the *.ts is generating .js source maps. Also I verified for those *.ts files WebStorm can now hit breakpoints. Breakpoints are not being hit in *.vue Components. I fixed all warnings in the code I modified.
snippet from tsconfig.js
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"types": [
"webpack-env",
"jest"
],
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx",
"src/components/HelloWorld.vue" //<-- just to see if it made a difference
]
part of the packages.json:
"typescript": "^3.0.0",
"vue-template-compiler": "^2.5.21"
"@vue/cli-service": "^3.2.0",
I'm expecting a .js file is generated for all .vue that have typescript in them. Js files are generated for .ts files but not for .vue files.