Hi, recently I’ve worked more and more with the JavaScript SDK and noticed
that some more modern features of JavaScript are not supported. After some
testing, it looks like MSFS (or the installed Coherent version) support
ECMAScript 8 features, but not version 9 or later. For my own code this is not
really an issue, as there is normally a workout, but I’d like to use certain
libraries which make use of those newer features. Any chance to get an update
to a more recent version in a future update? Thanks Best regards Axel
Note that you can work around these issues by transpiling your code with
something like https://esbuild.github.io/ or rollup/babel/tsc, which is the
way avionics using the MSFS Avionics Framework, or many third party avionics
are built. This lets you use a lot of modern JS features/syntax when it isn’t
natively supported by the JS engine. This includes the code provided by third-
party libraries as well. I suggest setting the “target” property of the
esbuild configuration to “safari11” to get optimal comptaibility with the sim.
The [MSFS Avionics Framework documentation](https://microsoft.github.io/msfs-
avionics-mirror/) can help you set this kind of project up.
1 Like
Great, thanks!