And update this dependency in the README file.
{
- "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"
]
}
}
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