diff --git a/.babelrc b/.babelrc index fdcb5a36..95cb3276 100644 --- a/.babelrc +++ b/.babelrc @@ -1,6 +1,11 @@ { "presets": [ - "@babel/preset-env", + ["@babel/preset-env", { + "targets": { + "node": "current" + }, + "modules": false + }], "@babel/preset-react" ], "plugins": [ @@ -8,6 +13,8 @@ "@babel/plugin-proposal-json-strings", "@babel/plugin-syntax-dynamic-import", "@babel/plugin-syntax-import-meta", - "@babel/plugin-transform-runtime" + "@babel/plugin-transform-runtime", + "@babel/plugin-proposal-optional-chaining", + "@babel/plugin-proposal-nullish-coalescing-operator" ] } diff --git a/app.js b/app.js index 3aae9c54..e653e619 100644 --- a/app.js +++ b/app.js @@ -11,93 +11,6 @@ require('./scss/application.scss'); const url = '/api/formdata'; const saveUrl = '/api/formdata'; -const TestComponent = () =>