From 725f0671604383bbbdd92edebeb5bff30129eb92 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 6 Mar 2026 11:19:52 -0500 Subject: [PATCH] Updated babelrc from babel 6 to babel 7 format And update this dependency in the README file. --- .babelrc | 9 ++++----- README | 11 ++++------- 2 files changed, 8 insertions(+), 12 deletions(-) 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 -- 2.45.2