I'm trying to make my application more effective with React.lazy. As the Ethereum lightwallet is a huge file, I would like to place it in a separate package. The import currently in operation is as follows:
import lightwallet from & # 39; eth-lightwallet / dist / lightwallet.min.js & # 39 ;;
When I try to import using the lazy syntax
const lightwallet = React.lazy (() => import (& # 39; eth-lightwallet / dist / lightwallet.min.js & # 39;));
Only one React.lazy object is returned instead of the lightwallet object. How could I solve this problem? Thank you!