Nicolò Ribaudo 8732dd39c6
Compile static blocks without the intermediate priv field step (#13297)
* Remove ordering constraints for `static-blocks` plugin

* Handle static blocks directly in `helper-create-class-features-plugin`
2021-05-14 11:35:59 -04:00

18 lines
255 B
JavaScript

class Foo {}
var _bar = {
writable: true,
value: 21
};
(() => {
Foo.foo = babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _bar);
Foo.qux1 = Foo.qux;
})();
babelHelpers.defineProperty(Foo, "qux", 21);
(() => {
Foo.qux2 = Foo.qux;
})();