vuejs / vue-test-utils-mocha-webpack-example

Example project using mocha-webpack and vue-test-utils
104 stars 48 forks source link

please update to recent vue-loader with vueloaderplugin #13

Closed LisaHS closed 6 years ago

LisaHS commented 6 years ago

I have problems generating a correct lcov report using SFC. The source path in lcov.info is wrong.

If I use for webpack devtool: "eval", I get: SF:C:/src/main/frontend/js/components/VueComponent.vue?vue&type=script&lang=js&

If I use for webpack devtool: "inline-source-map", I get: SF:C:\src\main\frontend\js\components\js\components\VueComponent.vue

The correct path is actually: C:\src\main\frontend\js\components\VueComponent.vue

It would be very helpful to have an example using the latest vue-loader.

LisaHS commented 6 years ago

Updating to the new nyc-Version and to all new Babel-Versions solved the problem:

"@babel/core": "7.0.1", "@babel/register": "7.0.0", "babel-loader": "8.0.2", "babel-plugin-istanbul": "5.0.1", "@babel/preset-env": "7.0.0", "nyc": "13.0.1",

eddyerburgh commented 6 years ago

Would you like to make a PR with the fix?

eddyerburgh commented 6 years ago

Would you like to make a PR with the fix?