Skip to content

[napi] It's hard to distinguish Builtin error due to err.to_string() and no way to get is_runtime_module #565

@JounQin

Description

@JounQin

#[error("Builtin module {resolved}")]
Builtin { resolved: String, is_runtime_module: bool },

error: Some(err.to_string()),

We had to do something like resolver.error?.startsWith('Builtin module '), which is very strange IMO.

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