mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
882e4f5322
* Remove Babel plugin for ES Modules Processing of ES Modules is executed by Webpack. Don't have to do it on Babel side. * Add plugin for test
44 lines
738 B
Text
44 lines
738 B
Text
{
|
|
"presets": [
|
|
"react",
|
|
[
|
|
"env",
|
|
{
|
|
"loose": true,
|
|
"modules": false,
|
|
"targets": {
|
|
"browsers": ["last 2 versions", "IE >= 11", "iOS >= 9"]
|
|
}
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
"syntax-dynamic-import",
|
|
"transform-object-rest-spread",
|
|
"transform-class-properties",
|
|
[
|
|
"react-intl",
|
|
{
|
|
"messagesDir": "./build/messages"
|
|
}
|
|
]
|
|
],
|
|
"env": {
|
|
"development": {
|
|
"plugins": [
|
|
"transform-react-jsx-source",
|
|
"transform-react-jsx-self"
|
|
]
|
|
},
|
|
"production": {
|
|
"plugins": [
|
|
"lodash"
|
|
]
|
|
},
|
|
"test": {
|
|
"plugins": [
|
|
"transform-es2015-modules-commonjs"
|
|
]
|
|
}
|
|
}
|
|
}
|