How do I dynamically create an instance of a class using Typescript in a Webpack bundled project? This is how I can work with it using a globally registered class:
const instance = Object.create(window['MyClass']).prototype
But how do I achieve the same in Webpack?
Aucun commentaire:
Enregistrer un commentaire