My goal here is to include two TypeScript files: app.ts and decorator.ts. The app.ts file utilizes a class defined in decorator.ts.
Initially, I attempted to create a basic example without using a module loader by adding script references to the files in my HTML in the correct order. However, I encountered a ReferenceError: exports is not defined.
My project is an ASP.NET Core Web application with static files only. I have shared the complete code on github here.
After facing issues without a module loader, I am considering whether it is necessary to use one. Can I not simply include these two scripts without a module loader?