Skip to content

Bug: No source locations in errors when using bundleAsync() #507

@JoshuaWise

Description

@JoshuaWise

Hi, I want to use bundleAsync with a custom resolver, but I want to display nice error messages if either resolver.read or resolver.resolve throw an error (or return a rejected Promise). But I don't currently see any way to get the source location of the @import rule being processed. Even if I just let the error bubble up, lightningcss just throws Error: GenericFailure, Promise rejected with no other information. Is there something I'm missing?

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