Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Ship to es5 #2

Closed
wants to merge 1 commit into from
Closed

Ship to es5 #2

wants to merge 1 commit into from

Conversation

srph
Copy link

@srph srph commented May 8, 2019

Problem

Tries to fix #1 wherein projects using Parcel get this error:

Uncaught TypeError: Class constructor Container cannot be invoked without 'new'

Overview

This makes it so that our build transpiles ES6 classes to ES5 function classes.

Adds roughly 1-2 LOC to the build.


Here's an example repository that shows this works.

@srph srph closed this Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught TypeError: Class constructor Container cannot be invoked without 'new'
1 participant