madskristensen / BundlerMinifier

Visual Studio extension
Other
611 stars 171 forks source link

VS Freezes and crashes when modifying js file in the bundle or the bundleconfiguration #582

Open initmaster opened 2 years ago

initmaster commented 2 years ago

Installed product versions

Description

VS Freezes and crashes when modifying js file in the bundle or the bundleconfiguration.json itself. It happens when "Produce Output Files" is activated and when a same js file is in two bundles at the same time.

Steps to recreate

  1. Be sure "Produce Output Files" is activated
  2. Define two different bundle in bundleconfig.json referencing the same js file.
  3. Make a change to the js file
  4. VS Freezes and crash
[
  {
    "outputFileName": "Scripts/bundle1.min.js",
    "inputFiles": [
      "Scripts/test.js"
    ],
    "minify": {
      "enabled": true,
      "preserveImportantComments": false
    }
  },
  {
    "outputFileName": "Scripts/bundle2.min.js",
    "inputFiles": [
      "Scripts/test.js"
    ],
    "minify": {
      "enabled": true,
      "preserveImportantComments": false
    }
  }
]

Thanks in advance for your help