babel plugin proposal optional chaining doesn't work code example
Example: @babel/plugin-proposal-optional-chaining
npm install --save-dev @babel/plugin-proposal-optional-chaining
// Add it to the plugins array
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-proposal-optional-chaining"]
});