forked from Thinkmill/keystatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.json
36 lines (36 loc) · 870 Bytes
/
babel.config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": 12,
"browsers": [
"last 2 chrome versions",
"last 2 firefox versions",
"last 2 safari versions",
"last 2 edge versions"
]
}
}
],
"@babel/preset-typescript",
["@babel/preset-react", { "runtime": "automatic" }]
],
"plugins": [
"@babel/plugin-transform-runtime",
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
],
"overrides": [
{
"test": ["packages/keystatic/src/**/*", "design-system/pkg/src/**/*"],
"exclude": ["packages/keystatic/src/form/fields/document/**/*"],
"plugins": [
[
"babel-plugin-react-compiler",
{ "runtimeModule": "#react-compiler-runtime" }
]
]
}
]
}