symfony / stimulus-bridge

Stimulus integration bridge for Symfony projects
https://symfony.com/ux
75 stars 15 forks source link

Lazy controller loader: generate true ES6 class #53

Closed weaverryan closed 2 years ago

weaverryan commented 2 years ago

One big, but kind of hidden change with Stimulus 3 is that IE11 support/ES5 has been dropped. This means, for example, that the Stimulus' classes are no longer transpiled from ES6 to ES5: they remain as true ES6 classes.

For the lazy controller, we need to do the same because you cannot extend an ES6 class with an ES5 class. But also, since we're no longer support ES5, this just generates better code :)

tgalopin commented 2 years ago

Thanks @weaverryan.