Syntax error on compiling nullish coalescing assignment (??=)
Installed product versions
- Visual Studio: 2022 community
- This extension: 1.14.11
Description
Getting syntax error when trying to compile nullish coalescing assignment (??=).
Steps to recreate
- Create a js file
- Write any code that implements ??=
- Compile file with the extension
Current behavior
It throws an Exception stating "unexpected token"
Expected behavior
It should be able to compile ??= into either a null check with assignment or see ??= as valid.
I’ll see if the libraries support this yet, either way we’re due for an update, I just gotta find some time.
Curious to hear if there is any progression in this issue.
I'm working through NUglify Issues, I just fixed an issue with deconstruction, I'll take a look at this next.
Can you provide your compiler config? What are you compiling the js from/to?
My files look like the following:
[
{
"outputFile": "/js/MyFile.es5.js",
"inputFile": "/js/MyFile.js"
}
]
Note that the files throwing the exception are not present in the config. The exception appears in visual studios "Error list". It looks like:
SyntaxError: DISK:/FILEPATH/MyFile.js: Unexpected token (line:column)
FunctionCausingIssue();
Thanks, this looks like an issue with Babel, hopefully updating it will resolve the issue. I'll let you know once I get the rest of the issues addressed and update the dependencies.
I'm trying to get a new version out, but I am getting errors trying to update the node_modules... I'm getting errors from node-gyp compiling node-sass. Is anyone able to rebuild the node_module.7z file using the build.cmd file?
// I may have to drop node_sass support if I cannot get this working
Sorry I am not very knowledgeable on how to do this so i won't be of much help sadly