Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove mui from list of transpiled packages

Manav Rathi25e762ba57f4
diff --git a/web/package.json b/web/package.json
index 58515a9595..59afa68b65 100644
--- a/web/package.json
+++ b/web/package.json
@@ -27,6 +27,7 @@
"dev:photos": "yarn workspace photos next dev",
"lint": "yarn prettier --check . && yarn workspaces run eslint .",
"lint-fix": "yarn prettier --write . && yarn workspaces run eslint --fix .",
+ "preview": "yarn preview:photos",
"preview:accounts": "yarn build:accounts && python3 -m http.server -d apps/accounts/out 3001",
"preview:auth": "yarn build:auth && python3 -m http.server -d apps/auth/out 3000",
"preview:cast": "yarn build:cast && python3 -m http.server -d apps/accounts/out 3001",
diff --git a/web/packages/next/next.config.base.js b/web/packages/next/next.config.base.js
index 187019b813..89b7456383 100644
--- a/web/packages/next/next.config.base.js
+++ b/web/packages/next/next.config.base.js
@@ -45,19 +45,13 @@ const gitSHA = () => {
* @type {import("next").NextConfig}
*/
const nextConfig = {
- /* generate a static export when we run `next build` */
+ // Generate a static export when we run `next build`.
output: "export",
compiler: {
emotion: true,
},
- transpilePackages: [
- "@/next",
- "@/ui",
- "@/utils",
- "@mui/material",
- "@mui/system",
- "@mui/icons-material",
- ],
+ // Use Next.js to transpile our internal packages before bundling them.
+ transpilePackages: ["@/next", "@/ui", "@/utils"],
// Add environment variables to the JavaScript bundle. They will be
// available as `process.env.VAR_NAME` to our code.