We made some crypto web-components and had to load some 3rd party libs in our index.html to make some test.
What we do is we add for example “ethers” lib in our package.json and we need to inject this this lib from the index.html file to create some objects we had to pass our web-components
What we know, we can create just a wrapper component, but we would not do it
How can we use this libs and export Objects in the index.html file to make some tests?
none of this is working
<script type="module">
import { ethers } from "/build/swap.esm.js";
import { ethers } from 'ethers';