I was looking googled and apparently did not stumble over the explanations. I am writing in Typescript with the ultimate goal of having a .js file (or set) that I can reference through script tags in HTML.
button.ts
...
import * as BF fro "./button-form.ts";
...
... emits ...
button.js
...
var BF = require("./button-form");
...
... which does not start in the browser because require () is not defined.
Similarly ...
Button-form.ts
...
export class ButtonForm {
...
... emits ...
Button-form.js
...
exports.ButtonForm = ButtonForm;
...
Problem
I cannot execute this javascript in the browser due to "require" and "export". It seems reasonable to TS to export and import class references, but the output is not something I can use. There should be a knowledge gap, but I'm not sure what I'm looking for.