Skip to content

Incorrect type for inputSourceMap #417

Open
@vlechemin

Description

@vlechemin

Empty source map doesn't pass babel validator:
https://github.com/babel/babel/blob/672a58660f0b15691c44582f1f3fdcdac0fa0d2f/packages/babel-core/src/config/validation/option-assertions.ts#L174

Due to empty string instead of undefined:
https://github.com/vuejs/vue-jest/blob/master/packages/vue3-jest/lib/transformers/typescript.js#L25
Should be:
res.sourceMapText !== undefined ? JSON.parse(res.sourceMapText) : undefined

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