cmake-js is an irreplacable dependency of the CRT. Starting with major version 7.x, cmake-js uses language features only found in node14+. In order to continue to be able to upgrade cmake-js without having to modify our node baseline to 14, this PR adds a babel-driven pre-processing step that rewrites the options-chaining code in cmake-js to be usable from earlier versions of node.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
cmake-js is an irreplacable dependency of the CRT. Starting with major version 7.x, cmake-js uses language features only found in node14+. In order to continue to be able to upgrade cmake-js without having to modify our node baseline to 14, this PR adds a babel-driven pre-processing step that rewrites the options-chaining code in cmake-js to be usable from earlier versions of node.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.