0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 17:54:41 +01:00
posthog/babel.config.js
Marius Andra 5d1bae4b8f
chore(upgrade): Kea 3.0, keeping React at 16.11 (#9682)
* upgrade to 2.6

* upgrade kea-forms, validator -> errors

* upgrade to 3.0

* fix some kea 3.0 changes

* default forms to submit

* fix some issues

* newer typegen and router

* new subscriptions plugin

* upgrade packages, replace subscriptionsPlugin

* convert all logic that used forms to kea 3

* bump babel, remove babel-plugin-kea

* fix circluar TS import bug

* fix few tests

* fix more tests

* convert to use new subscriptions

* fix more tests

* convert to v3 to use new subscriptions

* remove packages

* remove unused provider tag

* fix props order

* connect prompts

* misc type additions

* upgrade kea

* clean up few more tests from noise
2022-05-09 11:34:28 +02:00

20 lines
462 B
JavaScript

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