Skip to content

When using file loaders, processResult throws an error #45

@thatsmydoing

Description

@thatsmydoing

When using an esbuild config with file loaders, the result.outputFiles may contain files other than the sourcemap and resulting js.

This causes an error here

karma-esbuild/src/bundle.ts

Lines 153 to 154 in bcf9982

const map = JSON.parse(result.outputFiles[0].text) as RawSourceMap;
const source = result.outputFiles[1];
when it tries to parse some other file as a sourcemap and fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions