Open skodapetr opened 6 years ago
We can remove corejs by setting replacing
["@babel/preset-env", {
"useBuiltIns": "usage",
"corejs": {
"version": 3,
"proposals": true,
},
}],
with
["@babel/preset-env"],
in babel.config.js , but we should define set of supported browsers.
We can made use of jsonld library optional if the input is in specific format, for example from couch-db. We also use flatten operation that make use of compact as well as expand - so whole jsonld bundle needs to be included.
We can replace react-helmet with smaller alternative, see https://bundlephobia.com/result?p=react-helmet .
Bundle only if used: