I am trying out some third party JavaScript.
Let's say I import an ES6 module in a Chrome dev tools console:
import('https://unpkg.com/web3/dist/web3.js').then(module => console.log(module));
It gives me:
Module {Symbol(Symbol.toStringTag): "Module"}
Symbol(Symbol.toStringTag): "Module"
Is there a way for me to introspect the module contents from the JavaScript console, so that I can see what exports the module offers me to import and use?
The syntax is correct
However, the loaded module must explicitly support ECMAScript 6 module exports, so that the web browser will find any members.