ionic-team/ionicons

bug: IonIcons not loading after parcel build

開放

#1,215 建立於 2023年5月17日

 (6 則留言) (0 個反應) (0 位負責人)TypeScript (2,083 個分叉)batch import
help wantedtype: bug

倉庫指標

星標
 (17,256 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Current Behavior

IonIcons not loading after parcel build

Expected Behavior

Icons should load

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

live server image

parcel build image

console is giving this error : Uncaught SyntaxError: Cannot use import statement outside a module (at ionicons.esm.js:1:1)

sample code

貢獻者指南