class TestPlugin extends Object {}
let plugin_name = 'Test';
let _class = plugin_name + 'Plugin';
console.log(_class, new _class);
Uncaught TypeError: _class is not a constructor
new
let plugin_name = 'Test';
let _class = plugin_name + 'Plugin';
console.log(class _class {}); // class _class {}
let classes = {
[_class]: class {}
}
console.log(classes['TestPlugin']); // class {}