beet icon indicating copy to clipboard operation
beet copied to clipboard

Use an explicit library for assertions

Open lorisleiva opened this issue 3 years ago • 3 comments

As discussed, this is just a reminded task to explicitly import an assertion library such as npm install assert instead of relying on polyfills to make it easier for developers to get started with libraries using beets.

lorisleiva avatar Apr 21 '22 07:04 lorisleiva

I'm trying to use @metaplex-foundation/mpl-token-metadata on browser (with vitejs) and I get this error. Do you know a work around ?

image

olivbau avatar Jan 31 '23 08:01 olivbau

Yes, please! Please make assert a dependency, otherwise, we have to polyfill when using various packages that depend on this one!

grabbou avatar Feb 09 '23 15:02 grabbou

@lorisleiva Maybe add an assert package as peer-dependency ?

olivbau avatar Feb 09 '23 16:02 olivbau