Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease bundle size #112

Open
skodapetr opened this issue Oct 31, 2018 · 3 comments
Open

Decrease bundle size #112

skodapetr opened this issue Oct 31, 2018 · 3 comments
Assignees

Comments

@skodapetr
Copy link
Member

skodapetr commented Oct 31, 2018

Bundle only if used:

  • Google Tag Manager
  • Sentry
@skodapetr
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant