BundlerMinifier
BundlerMinifier copied to clipboard
Source map files are not created when the JavaScript file was generated from TypeScript
Installed product versions
- Visual Studio: [2019 Professional]
- This extension: [3.2.449]
Description
Source map files are not created for JavaScript files that are generated from Typescript.
Steps to recreate
- Create a new MVC Core 3.1 web application
- Create a test.ts Typescript file and save it. The JavaScript file is auto-generated by VS
- Edit the bundleconfig.json file to minify the JS file:
{
"outputFileName": "wwwroot/js/test.min.js",
"inputFiles": [ "wwwroot/js/test.js" ],
"minify": { "enabled": true }
"sourceMap": true
}
- Compile the project
- The test.min.js file is created, but the test.min.js.map file is not
Current behavior
The minified source map file is not being generated
Expected behavior
A map file for the minified JavaScript should be generated to allow for browser debugging.
I've been having a similar issue, and this wasn't always the case