At my workplace, we have an ASP.NET WebApp that utilizes ASP.NET MVC Bundles. To give you a clear picture, here is a snippet of the code:
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
// Additional code has been omitted for clarity.
BundleTable.EnableOptimizations = true;
}
During my work on the application, whenever I make changes to a piece of TypeScript, I find myself needing to stop the application and then start it again in order for MVC to compile the TypeScript into JavaScript.
My query pertains to whether there exists a method through which I can seamlessly convert TypeScript into JavaScript and refresh the webpage I am currently viewing. This would ensure that my modifications are immediately reflected, allowing me to debug the new changes in my browser without requiring a full application restart.
It's worth mentioning that I disable the "EnableOptimizations" option so that instead of receiving minified content, everything is consolidated into a single file.