You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works without these libraries or load them only on demand.
Current Behavior
It works with these libraries and is impossible even to replace them if you use just simple import SdkAuth, { TokenProvider } from '@commercetools/sdk-auth'; because it uses the UMD version.
+1 This prevents this library from being used with build tools such as Vite - which inherently don't support node polyfills in the browser - which subseqeuntly spits out ReferenceError: Buffer is not defined for any node related modules
Description
A lot of useless code coming with this library:
Expected Behavior
It works without these libraries or load them only on demand.
Current Behavior
It works with these libraries and is impossible even to replace them if you use just simple
import SdkAuth, { TokenProvider } from '@commercetools/sdk-auth';
because it uses the UMD version.Possible Solution
#1649
#1650
#1651
The text was updated successfully, but these errors were encountered: