How to import external HTML files into a TypeScript class
问题 I'm attempting to build a JavaScript package that is using Webpack to compile a TypeScript file and all its imports into a single JavaScript file. The main goal with this package is to spit out HTML to any application consuming the package, following a given set of conditions. At the moment, I have this working well by using template literals. But, ideally I would love to move the markup into separate HTML template files that can be imported and parsed by relevant TypeScript classes. I'm