BundlerMinifier icon indicating copy to clipboard operation
BundlerMinifier copied to clipboard

Source map files are not created when the JavaScript file was generated from TypeScript

Open cas4 opened this issue 5 years ago • 1 comments

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

  1. Create a new MVC Core 3.1 web application
  2. Create a test.ts Typescript file and save it. The JavaScript file is auto-generated by VS
  3. 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
}
  1. Compile the project
  2. 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.

cas4 avatar Aug 14 '20 19:08 cas4

I've been having a similar issue, and this wasn't always the case

ericop avatar Feb 22 '21 19:02 ericop