js icon indicating copy to clipboard operation
js copied to clipboard

bug: replace CommonJS 'camelcase-keys' dependency

Open David-van-der-Sluijs opened this issue 1 year ago • 3 comments

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.

David-van-der-Sluijs avatar Jan 26 '24 19:01 David-van-der-Sluijs

Tracked in LOG-8216.

xiaoyijun avatar Jan 31 '24 05:01 xiaoyijun

it's 2024, we can update our SDKs to ESM-only

gao-sun avatar Apr 02 '24 10:04 gao-sun

How about this one? change-case @gao-sun

charIeszhao avatar Aug 01 '24 08:08 charIeszhao