linkedpipes / dcat-ap-viewer

Viewer of DCAT-AP 2.0.1 compatible dataset metadata
MIT License
7 stars 6 forks source link

Decrease bundle size #112

Open skodapetr opened 6 years ago

skodapetr commented 6 years ago

Bundle only if used:

skodapetr commented 3 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.

skodapetr commented 3 years ago

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.

skodapetr commented 3 years ago

We can replace react-helmet with smaller alternative, see https://bundlephobia.com/result?p=react-helmet .