@babel/plugin-proposal-record-and-tuple

    1. {
    2. "plugins": ["@babel/plugin-proposal-record-and-tuple"]
    3. }
    1. require("@babel/core").transformSync("code", {
    2. plugins: [["@babel/plugin-proposal-record-and-tuple"]],
    3. });

    By default this plugin only transforms the proposal syntax, using the Record and Tuple globals:

    1. {
    2. [
    3. "@babel/plugin-proposal-record-and-tuple",
    4. {
    5. }
    6. ]
    7. ]

    Don’t forget to add @bloomberg/record-tuple-polyfill to your dependencies!

    If you wish to inject imports to a polyfill different from @bloomberg/record-tuple-polyfill, you can use this option to specify its name.