js
js copied to clipboard
bug: replace CommonJS 'camelcase-keys' dependency
When using this library inside an angular application, the compiler warns about a CommonJS dependency used here:
Warning: node_modules/@logto/js/lib/core/fetch-token.js depends on 'camelcase-keys'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
I think that is a rather simple library that could be either replaced or the functionality written from scratch. If I have the time, I can look into it further and suggest something / write something.
Tracked in LOG-8216.
it's 2024, we can update our SDKs to ESM-only
How about this one? change-case @gao-sun