refactor: remove unused packages from transpiledPackages (#24595)
Remove @calcom/embed-react and @calcom/embed-snippet from the transpiledPackages configuration in apps/web/next.config.js as they are not imported from source in apps/web. Only @calcom/embed-core is actually used and requires transpilation since it's imported from source paths like @calcom/embed-core/src/embed-iframe. The other two packages have pre-built dist files and are not directly imported in the web app, so Next.js doesn't need to transpile them. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
870ad57a7e
commit
6aa21aceb8
1 file changed
+1
-2
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable */
|
||||
require("dotenv").config({ path: "../../.env" });
|
||||
const englishTranslation = require("./public/static/locales/en/common.json");
|
||||
const { withAxiom } = require("next-axiom");
|
||||
@@ -223,8 +224,6 @@ const nextConfig = (phase) => {
|
||||
"@calcom/dayjs",
|
||||
"@calcom/emails",
|
||||
"@calcom/embed-core",
|
||||
"@calcom/embed-react",
|
||||
"@calcom/embed-snippet",
|
||||
"@calcom/features",
|
||||
"@calcom/lib",
|
||||
"@calcom/prisma",
|
||||
|
||||
Reference in new issue
Block a user