π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Don't need the jsxImportSource anymore
Manav Rathi423c9c7b9cea
diff --git a/web/apps/photos/tsconfig.json b/web/apps/photos/tsconfig.jsonindex 413a12c6c1..9ccccd5cbe 100644--- a/web/apps/photos/tsconfig.json+++ b/web/apps/photos/tsconfig.json@@ -4,7 +4,6 @@"baseUrl": "./src","downlevelIteration": true,"jsx": "preserve",- "jsxImportSource": "@emotion/react","lib": ["dom", "dom.iterable", "esnext", "webworker"],"noImplicitAny": false,"noUnusedLocals": false,diff --git a/web/docs/dependencies.md b/web/docs/dependencies.mdindex e553e31196..b5baa35175 100644--- a/web/docs/dependencies.md+++ b/web/docs/dependencies.md@@ -90,51 +90,16 @@ DOM.### MUI and Material IconsWe use [MUI](https://mui.com)'s+[@mui/material](https://mui.com/material-ui/getting-started/installation/) as+our base React component library.-- [@mui/material](https://mui.com/material-ui/getting-started/installation/),- which is a React component library, to get a base set of components; and+MUI uses [Emotion](https://emotion.sh/) as its preferred CSS-in-JS library, for+which we need to install install two Emotion packages (`@emotion/react` and+`@emotion/styled`) as peer dependencies.-- [@mui/material-icons](https://mui.com/material-ui/material-icons/). which- provides Material icons exported as React components (a `SvgIcon`).--### Emotion--MUI uses [Emotion](https://emotion.sh/) (a styled-component variant) as its-preferred CSS-in-JS library, so we use the same in our code too to reduce moving-parts.--Emotion itself comes in many parts, of which we need the following:--- [@emotion/react](https://github.com/emotion-js/emotion) - React interface to- Emotion. In particular, we set this as the package that handles the- transformation of JSX into JS (via the `jsxImportSource` property in- `tsconfig.json`).--- [@emotion/styled](https://github.com/emotion-js/emotion) - Provides the- `styled` utility, a la styled-components. We don't use it directly, instead- we import it from `@mui/material`. However, MUI docs- [mention](https://mui.com/material-ui/integrations/interoperability/#styled-components)- that-- > Keep `@emotion/styled` as a dependency of your project. Even if you never- > use it explicitly, it's a peer dependency of `@mui/material`.--#### Component selectors--Note that currently the SWC plugin doesn't allow the use of the component-selectors API (i.e using `styled.div` instead of `styled("div")`).--> I think the transform for component selectors is not implemented in the swc-> plugin.->-> https://github.com/vercel/next.js/issues/46973--There is a way of enabling it by installing the `@emotion/babel-plugin` and-specifying the import map as mentioned-[here](https://mui.com/system/styled/#how-to-use-components-selector-api)-([full example](https://github.com/mui/material-ui/issues/27380#issuecomment-928973157)),-but that disables the SWC integration altogether, so we live with this-infelicity for now.+We also use MUI's+[@mui/material-icons](https://mui.com/material-ui/material-icons/) package,+which provides Material icons exported as React components (a `SvgIcon`).### Date pickersdiff --git a/web/packages/shared/tsconfig.json b/web/packages/shared/tsconfig.jsonindex 8a31d251d0..1eddcee1e7 100644--- a/web/packages/shared/tsconfig.json+++ b/web/packages/shared/tsconfig.json@@ -3,7 +3,6 @@"compilerOptions": {"downlevelIteration": true,"jsx": "preserve",- "jsxImportSource": "@emotion/react","lib": ["dom", "dom.iterable", "esnext", "webworker"],"noImplicitAny": false,"noUnusedLocals": false,