mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 13:17:35 +00:00
67 lines
1.3 KiB
Plaintext
67 lines
1.3 KiB
Plaintext
{
|
|
"presets": [
|
|
"react",
|
|
[
|
|
"env",
|
|
{
|
|
"exclude": ["transform-async-to-generator", "transform-regenerator"],
|
|
"loose": true,
|
|
"modules": false,
|
|
"targets": {
|
|
"browsers": ["last 2 versions", "IE >= 11", "iOS >= 9"]
|
|
}
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
"syntax-dynamic-import",
|
|
["transform-object-rest-spread", { "useBuiltIns": true }],
|
|
"transform-decorators-legacy",
|
|
"transform-class-properties",
|
|
[
|
|
"react-intl",
|
|
{
|
|
"messagesDir": "./build/messages"
|
|
}
|
|
],
|
|
"preval"
|
|
],
|
|
"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-react-inline-elements",
|
|
[
|
|
"transform-runtime",
|
|
{
|
|
"helpers": true,
|
|
"polyfill": false,
|
|
"regenerator": false
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"test": {
|
|
"plugins": [
|
|
"transform-es2015-modules-commonjs"
|
|
]
|
|
}
|
|
}
|
|
}
|