Skip to content

Named imports from assert #141

@make-github-pseudonymous-again

Description

I would like to use import {AssertionError} from 'assert'; but cannot because power-assert does not echo named exports. All I can do is either abuse import {AssertionError} from 'node:assert; since this bypasses the power-assert babel plugin, or import assert from 'assert'; const {AssertionError} = assert;.

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