-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not es6 ready - does not work with es6 classes #181
Comments
For now, you could export a factory method instead of class itself:
|
Any idea when will it start supporting ES6 classes ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I declare class using es6 class keyword:
And I try to load it using wire:
I get an error:
Wire (actually when) is trying to do
Foo.apply(new_foo, args)
, which is not allowed in es6. Solution would be using new spread operator -new Foo(...args)
, but that is not backwards-compatible.PR #180 has possible workaround with named constructors which can be called with "apply".
The text was updated successfully, but these errors were encountered: