0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00
posthog/babel.config.js
Paul D'Ambra 4e657b41aa
chore: dependency wrangling (#22829)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-10 09:49:47 +01: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',
],
}