Open plqplq opened 1 year ago
You should double-check the inputFile that reports the error, if there is a syntax error, the vs extension will throw an error Object reference not set to an instance of an object
, the secret is to fix all the little green waves that appear.
Describe the bug When you try to re-minify the latest d3 v7 in already-minified state, a compilation error occurs with object variable not set.
To Reproduce In Visual Studio 2022, create a project that includes d3.v7.min.js copied locally as a javascript file, and try to re-minify it in bundleconfig:
The above code caused the error, and setting minify:enabled:false fixes it.
Although this is easy to workaround, it's an opportunity to improve the error message that is thrown and also an opportunity to fix the problem that some kind of es6 construct is throwing this message.
Expected behavior Compilation should succeed.
Screenshots