0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
posthog/babel.config.js
Richard Borcsik ad95e616cf
feat(replay): event based recording trigger (#26168)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2024-11-13 21:15:24 +00:00

27 lines
725 B
JavaScript

/* global module */
module.exports = {
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-class-properties',
'@babel/plugin-transform-private-property-in-object',
'@babel/plugin-transform-nullish-coalescing-operator',
],
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 3,
targets: 'defaults', // browserlist's defaults - https://github.com/browserslist/browserslist#full-list
},
],
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
'@babel/typescript',
],
}