0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
posthog/babel.config.js
Lleo Harress 3b21790027
Automatically add polyfills based on browser requirements (#5086)
* Latest browser’s versions and statistics

* Browserlists - Use "defaults" browser support

* Enable Babel polyfills based on usage

* Revert "Polyfill Object.fromEntries (for Safari <= 12) (#4999)"

This reverts commit ad63386a69.

* Different browser support for dev/prod for build performance
2021-07-13 10:01:04 +02:00

20 lines
459 B
JavaScript

/* global module */
module.exports = {
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-react-jsx',
'@babel/plugin-proposal-class-properties',
['babel-plugin-kea', { path: './frontend/src' }],
],
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 3,
},
],
'@babel/typescript',
],
}