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

贡献者指南