mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 12:35:07 +01:00
63 lines
1.2 KiB
Plaintext
63 lines
1.2 KiB
Plaintext
{
|
|
"presets": [
|
|
"react",
|
|
[
|
|
"env",
|
|
{
|
|
"loose": true,
|
|
"modules": false,
|
|
"targets": {
|
|
"browsers": ["last 2 versions", "IE >= 11", "iOS >= 9"]
|
|
}
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
"syntax-dynamic-import",
|
|
["transform-object-rest-spread", { "useBuiltIns": true }],
|
|
"transform-class-properties",
|
|
[
|
|
"react-intl",
|
|
{
|
|
"messagesDir": "./build/messages"
|
|
}
|
|
]
|
|
],
|
|
"env": {
|
|
"development": {
|
|
"plugins": [
|
|
"transform-react-jsx-source",
|
|
"transform-react-jsx-self"
|
|
]
|
|
},
|
|
"production": {
|
|
"plugins": [
|
|
"lodash",
|
|
[
|
|
"transform-react-remove-prop-types",
|
|
{
|
|
"mode": "remove",
|
|
"removeImport": true,
|
|
"additionalLibraries": [
|
|
"react-immutable-proptypes"
|
|
]
|
|
}
|
|
],
|
|
[
|
|
"transform-runtime",
|
|
{
|
|
"helpers": true,
|
|
"polyfill": false,
|
|
"regenerator": false
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"test": {
|
|
"plugins": [
|
|
"transform-es2015-modules-commonjs"
|
|
]
|
|
}
|
|
}
|
|
}
|