My experience
I specialize in utilizing TypeScript
and Visual Studio
to transform highly organized code into functional JavaScript. My skills involve configuring the project and Visual Studio to perform various tasks:
- Merging multiple compiled JavaScript files into a single file
- Creating a source map file
Within the generated JSON
object located in the source map file, I can observe numerous references to method names and other elements present in my original TypeScript .ts
files under the "names" property. These are known as "symbol names" (as referenced in the proposal specification) and also appear in the final .js
file.
The primary challenge I am currently addressing is to reduce the size of the output JavaScript file while retaining all the functionalities offered by a source map file.
The inquiry
As I have not yet determined how to instruct Visual Studio to minimize the JavaScript file and subsequently generate the necessary source map file (how should this be done?), what repercussions might arise if an alternative tool is employed for the minification process? Can we expect the untouched source map file to function correctly?
My concern stems from the assumption that the tool may introduce new symbol names in the minified file. Ideally, I would prefer Visual Studio to handle the minification task prior to generating the source map file.