How to use the @babel/plugin-transform-property-literals.default function in @babel/plugin-transform-property-literals

To help you get started, we’ve selected a few @babel/plugin-transform-property-literals examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fusepilot / babel-preset-extendscript / src / index.js View on Github external
require('@babel/plugin-transform-object-super').default,
      require('@babel/plugin-transform-shorthand-properties').default,
      require('@babel/plugin-transform-duplicate-keys').default,
      [
        require('@babel/plugin-transform-computed-properties').default,
        { loose },
      ],
      [require('@babel/plugin-transform-for-of').default, { loose }],
      require('@babel/plugin-transform-sticky-regex').default,
      require('@babel/plugin-transform-unicode-regex').default,
      require('@babel/plugin-check-constants').default,
      [require('@babel/plugin-transform-spread').default, { loose }],
      require('@babel/plugin-transform-parameters').default,
      [require('@babel/plugin-transform-destructuring').default, { loose }],
      require('@babel/plugin-transform-block-scoping').default,
      require('@babel/plugin-transform-property-literals').default,
      [
        require('@babel/plugin-proposal-object-rest-spread').default,
        { useBuiltIns: true },
      ],
      ...require('./transformers'),
      ...require('./json'),
    ].filter(Boolean),
  });
}

@babel/plugin-transform-property-literals

Ensure that reserved words are quoted in object property keys

MIT
Latest version published 26 days ago

Package Health Score

95 / 100
Full package analysis

Popular @babel/plugin-transform-property-literals functions