]> git.cworth.org Git - lmno.games/commitdiff
Babel: Add the transform-object-rest-spread plugin to the production build
authorCarl Worth <cworth@cworth.org>
Mon, 15 Jun 2020 00:11:09 +0000 (17:11 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 15 Jun 2020 01:50:03 +0000 (18:50 -0700)
This should have been added at the same time this was added to the
development build. Without it, a production build fails.

.babelrc

index b9db511f14d44141aaab814b7b2b6b72feeea229..48b7809b36d01a97e71148583c523b50145e7ead 100644 (file)
--- a/.babelrc
+++ b/.babelrc
@@ -2,6 +2,9 @@
   "presets": ["react"],
   "env": {
     "production": {
+      "plugins": [
+        "transform-object-rest-spread"
+      ]
     },
     "development": {
       "plugins": [