在 Ionic Vue 中处理 Webpack 5 的 Polyfill 问题
<p>我正在尝试在 Ionic Vue 中使用 cosmjs 的包。当我想导入时</p>
<pre class="brush:php;toolbar:false;">import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing";</pre>
<p>我收到这个问题:</p>
<pre class="brush:php;toolbar:false;">If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "crypto": false }</pre>
<p>并且无法在应用程序中使用该应用程序。</p>