Closed franklloydteh closed 3 years ago
No. All the ones you have listed only have commonJS packages, e.g. .tweetnacl
, scryptsy
, blakejs
... The polkadot-js libraries itself is ESM (default) & CJS via export maps.
For those packages listed, I would suggest logging an issue in their specific repos to publish to ESM and CJS. (This is unlikely to be actioned by the authors since it has no pre-compilation step, they are stable and they are written in native CJS. Additionally, since most of them are crypto-related, any changes to those packages don't get taken lightly)
This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.
I get the following errors when adding "@polkadot/ui-keyring": "0.78.1" to the package.json of an Angular project and doing an
ng build
. This results in a larger build file. Would it be possible to replace dependencies on CommonJS Modules?According to Angular Documentation
It is recommended that you avoid depending on CommonJS modules in your Angular applications. Depending on CommonJS modules can prevent bundlers and minifiers from optimizing your application, which results in larger bundle sizes. Instead, it is recommended that you use ECMAScript modules in your entire application. For more information, see How CommonJS is making your bundles larger.