Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named imports from assert #141

Open
make-github-pseudonymous-again opened this issue Dec 24, 2021 · 0 comments
Open

Named imports from assert #141

make-github-pseudonymous-again opened this issue Dec 24, 2021 · 0 comments

Comments

@make-github-pseudonymous-again

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;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant