Explanation about how to remove any lib/utility you don't need/like
You can use other alternative libraries for analytics.
We've experimented with Google Analytics and were really disappointed by it. Amplitude is much better, both for configuring the events, documenting them and exploit them. But it's much more expensive.
-
Remove the following libraries:
amplitude-js
: Top-level amplitude official lib, used by react-amplitude.@amplitude/react-amplitude
: React-friendly amplitude lib, non-officially maintained. Really useful when working with react.
-
Remove their components usage in the source code
-
Remove the
AMPLITUDE_API_KEY
env var
We strongly recommend to keep Emotion. You can use both Styled Component approach and inline styles, it should feet all needs.
- Remove the following libraries:
@emotion/core
: Necessary to use emotion, with built-incss
notation support.@emotion/styled
: Necessary to used thestyled
notation.emotion-theming
: Theming library inspired by styled-components
- Remove their components usage in the source code +
/** @jsx jsx */
You may replace Sentry by another monitoring tool of your choice. Make sure it is JS universal-friendly though.
- Remove the following libraries:
@sentry/browser
: Package to use from the browser.@sentry/node
: Package to use from the server.
- Remove their components usage in the source code
- Remove the
SENTRY_DSN
env var - Remove alias in next.config.js
config.resolve.alias['@sentry/node'] = '@sentry/browser';
You may replace Locize by another internationalisation too of your choice. Make sure it is JS universal-friendly though.
You may also completely remove i18n from your app, if you don't need it. (
i18next
andreact-i18next
packages)
- Remove the following libraries:
i18next-locize-backend
: This is an i18next backend to be used for locize service. It will load resources from locize server using xhr.i18next-node-locize-backend
: This is a i18next backend to be used with node.js for the locize service. It's for the node.js server what the i18next-locize-backend is for the browser.locize-editor
: The locize-editor enables you to directly connect content from your website / application with your content on your localization project on locize.locize-node-lastused
: This is an i18next plugin or standalone scriot to be used for locize service. It will update last used timestamps on reference keys from your locize project using xhr. It sets the last used date on your reference language's namespaces.
- Remove their components usage in the source code
- Remove the
LOCIZE_PROJECT_ID
andLOCIZE_API_KEY
env var