Ion icons not loading with Parcel build

I am using ionicons for my html. It is working fine with live server. I tried to build with parcel and now they are not loading. icons are loading in network tab but not showing up in build. Please advise. Assume body tag enclosed for html

Uncaught SyntaxError: Cannot use import statement outside a module (at ionicons.esm.js:1:1)

<script src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js" type="module"
></script>
<script nomodule
  src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"
></script>

Anyone have any solution to this problem. Even I have the same issue.