forked from metabrainz/acousticbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
33 lines (33 loc) · 828 Bytes
/
babel.config.js
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
module.exports = {
sourceType: "unambiguous",
presets: [
[
"@babel/preset-typescript",
{
allowDeclareFields: true,
},
],
"@babel/preset-react",
[
"@babel/preset-env",
{
useBuiltIns: "usage",
corejs: { version: "3.9", proposals: true },
targets: {
node: "12",
browsers: ["> 0.2% and not dead", "firefox >= 44"],
},
},
],
],
plugins: [
[
"@babel/plugin-transform-typescript",
{
allowDeclareFields: true,
},
],
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-runtime",
],
};