meta-lightbox/babel.config.json

31 lines
964 B
JSON
Raw Normal View History

2021-01-31 12:51:51 +01:00
{
"presets": [
[
"@babel/preset-env",
{
2021-08-04 00:55:06 +02:00
"targets":
{
2021-01-31 12:51:51 +01:00
"node": "6.10",
"esmodules": true
}
}
],
[
"@babel/preset-react",
{
"pragma": "dom", // default pragma is React.createElement (only in classic runtime)
"pragmaFrag": "DomFrag", // default is React.Fragment (only in classic runtime)
"throwIfNamespace": false, // defaults to true
"runtime": "classic" // defaults to classic
// "importSource": "custom-jsx-library" // defaults to react (only in automatic runtime)
}
]
],
"plugins": [
2021-08-04 00:55:06 +02:00
"@babel/plugin-syntax-top-level-await",
2021-01-31 12:51:51 +01:00
"@babel/plugin-proposal-object-rest-spread",
2021-08-04 00:55:06 +02:00
"@babel/plugin-syntax-jsx",
"@babel/plugin-proposal-class-properties"
2021-01-31 12:51:51 +01:00
]
}