ionic-team / pwa-elements

Quality UI experiences for Web APIs that require custom UI (such as media/camera).
https://medium.com/@maxlynch/building-the-progressive-web-app-os-57daebcb69c1
MIT License
168 stars 50 forks source link

fix: enable es5 build output #122

Closed sean-perkins closed 1 year ago

sean-perkins commented 1 year ago

In previous versions of this package, it was distributed with an es5 output: https://unpkg.com/@ionic/pwa-elements@3.1.0/dist/ionicpwaelements/ionicpwaelements.js.

In v3.2.0 when upgrading Stencil, this default behavior changed and building for es5 became opt-in. By not enabling this flag in the config, this regressed environments consuming that output: https://unpkg.com/@ionic/pwa-elements@latest/dist/ionicpwaelements/ionicpwaelements.js (results in a 404).

This PR re-enables building es5 output.