yavin-dev / framework

A framework for rapidly building production quality analytics applications
https://yavin.dev
MIT License
84 stars 35 forks source link

Fix: Perspective in prod builds and bad imports #1701

Closed kevinhinterlong closed 2 years ago

kevinhinterlong commented 2 years ago

Description

Because we add support for ie 11 in prod builds, babel jumbles with the syntax for class extends HTMLElement which is required for defining custom html elements (not just messing with prototypes). So a change in perspective caused us to start pulling in this js file and transpiling it leading to throwing a TypeError: Illegal Constructor

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.