这是indexloc提供的服务,不要输入任何密码
Skip to content

suggestion: Add ./src/error.ts to deno.json exports #2995

@marvinpeter95

Description

@marvinpeter95

Currently, you have to import HttpError from jsr:@fresh/core. This is fine on the server side but doesn’t work client side. In my project I use custom error classes which extend HttpError. The problem is that I need to use these error classes in the browser too. In order for that to work I import HttpError using https://jsr.io/@fresh/core/2.0.0-alpha.34/src/error.ts.

That being said, it would be much nicer to import it using jsr:fresh/core/error or jsr:fresh/core/runtime.

Hence, I’d like to suggest adding ./src/error.ts to the exports in the deno.json. Would that be possible?

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