cardano-serialization-lib
cardano-serialization-lib copied to clipboard
Npm package Warning in Angular
I am using the NPM package in an Angular App. With Browser WASM (v. 9.1.2) it shows a Warning in console while compiling:
./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js:12128:14-53 - Warning: Critical dependency: the request of a dependency is an expression.
This is the line of code:

The package is actually working correctly. But would like to avoid warnings in production. Any idea?
Getting the same thing in dev with react. Would be great if the warning could be removed.
any updates?
This is an issue with some upstream dependencies and not something we can tackle in this codebase. You can see https://github.com/rustwasm/wasm-bindgen/issues/2706 where one of the maintainers answered
Are there any plans for a pure js library to do serializations?