From: Carl Worth Date: Fri, 6 Mar 2026 16:19:52 +0000 (-0500) Subject: Updated babelrc from babel 6 to babel 7 format X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=725f0671604383bbbdd92edebeb5bff30129eb92;p=lmno.games Updated babelrc from babel 6 to babel 7 format And update this dependency in the README file. --- diff --git a/.babelrc b/.babelrc index 48b7809..6d3cdf6 100644 --- 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 0881553..56a6ba1 100644 --- 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