forked from Thinkmill/keystatic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.json
More file actions
33 lines (33 loc) · 783 Bytes
/
babel.config.json
File metadata and controls
33 lines (33 loc) · 783 Bytes
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
{
"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"],
"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" }
]
]
}
]
}