]> git.cworth.org Git - lmno.games/commitdiff
Updated babelrc from babel 6 to babel 7 format
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 16:19:52 +0000 (11:19 -0500)
committerCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 16:29:48 +0000 (11:29 -0500)
And update this dependency in the README file.

.babelrc
README

index 48b7809b36d01a97e71148583c523b50145e7ead..6d3cdf6246ee46c65494c747ea5c6b66f52fd5a3 100644 (file)
--- a/.babelrc
+++ b/.babelrc
@@ -1,16 +1,15 @@
 {
-  "presets": ["react"],
+  "presets": [["@babel/preset-react", {"development": true}]],
   "env": {
     "production": {
+      "presets": [["@babel/preset-react", {"development": false}]],
       "plugins": [
-        "transform-object-rest-spread"
+        "@babel/plugin-proposal-object-rest-spread"
       ]
     },
     "development": {
       "plugins": [
-        "transform-react-jsx-self",
-        "transform-react-jsx-source",
-        "transform-object-rest-spread"
+        "@babel/plugin-proposal-object-rest-spread"
       ]
     }
   }
diff --git a/README b/README
index 08815537541cfed6e2987f3ecef5aef5d71c6665..56a6ba1de16ab8e0c0d7859df328a5b711f391a5 100644 (file)
--- a/README
+++ b/README
@@ -15,11 +15,8 @@ code:
 
 Dependencies
 ------------
-Compiling the source requires the babel (version 6) CLI to be
-available as "babeljs" along with the "react" preset and support for
-"object spread" syntax. This can be achieved on Debian with:
+Compiling the source requires the babel CLI to be available as
+"babeljs" along with the "react" preset and support for "object
+spread" syntax. This can be achieved on Debian with:
 
-       sudo apt install \
-                 node-babel-cli \
-                 node-babel-preset-react \
-                 node-babel-plugin-transform-object-rest-spread
+       sudo apt install node-babel7