Say I have two files
//a.ts
export class A {
public print() {
console.log("A!");
}
}
and
//app.ts
import A from "./a";
new A().print();
How would I go about setting up the tsconfig so that it outputs both to one file? i.e. kinda like so
class A {
print() {
console.log("A!");
}
}
new A().print();
I can't seem to get outfile to work correctly and when I set module to "AMD", I can't run the code in browser because it's missing "define"
I've tried Typescript compile to single file but that seems to generate define related things that doesn't run on it's own in browser without require.js, when all I want is to condense self contained code into one file? Thank you!