I tried searching internet, couldn't find details how can I load a npm package to yew.
I am trying to load @polkadot/extension-dapp ( code docs)
#[wasm_bindgen(module = "/node_modules/@polkadot/extension-dapp/index.js")]
extern "C" {
#[wasm_bindgen]
pub fn web3Enable(originName: String) -> JsValue;
}
It gives error: Uncaught TypeError: Failed to resolve module specifier "@polkadot/util". Relative references must start with either "/", "./", or "../".