power-assert icon indicating copy to clipboard operation
power-assert copied to clipboard

Named imports from assert

Open make-github-pseudonymous-again opened this issue 3 years ago • 0 comments
trafficstars

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