Skip to content

vue-loader is incompatible with remap-istanbul because of missing "file" property on sourcemap. #1189

Closed
@Ross-Esmond

Description

@Ross-Esmond

Version

14.2.1

Reproduction link

https://github.com/scry/VueCoverage

Steps to reproduce

clone the repo, yarn install, karma start.

Karma will break because of these lines in remap-istanbul.

remap-istanbul expects sourcemaps to have the "file" property, but vue-loader isn't setting it.

What is expected?

parser.js should be passing the file option to SourceMapGenerator, as per SourceMapGenerator docs.

Link to line in vue-loader.

What is actually happening?

parser.js skips the file property, which results in a map being exported without file specified.


This causes an issue specifically with remap-istanbul. I thought the bug was theirs for a while but it looks like it's a saner fix in vue-loader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions