Remove mui from list of transpiled packages

- I can't see this mentioned anywhere in the docs
- Removing it didn't break anything dev / preview
This commit is contained in:
Manav Rathi 2024-04-01 17:13:06 +05:30
parent d5f294980e
commit 25e762ba57
No known key found for this signature in database
2 changed files with 4 additions and 9 deletions

View file

@ -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",

View file

@ -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.