]> git.cworth.org Git - lmno.games/blobdiff - .babelrc
Babel: Add the transform-object-rest-spread plugin to the production build
[lmno.games] / .babelrc
index b182744c4ffad8c8cfa3edf7b07f5fea86769352..48b7809b36d01a97e71148583c523b50145e7ead 100644 (file)
--- a/.babelrc
+++ b/.babelrc
@@ -2,11 +2,15 @@
   "presets": ["react"],
   "env": {
     "production": {
+      "plugins": [
+        "transform-object-rest-spread"
+      ]
     },
     "development": {
       "plugins": [
         "transform-react-jsx-self",
-        "transform-react-jsx-source"
+        "transform-react-jsx-source",
+        "transform-object-rest-spread"
       ]
     }
   }