Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

move optimizePackageImports to experimental

Steven Tey77bcda2b9eb7
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 10fefa447c..38f7977e67 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -4,23 +4,23 @@ const { withAxiom } = require("next-axiom");
/** @type {import('next').NextConfig} */
module.exports = withAxiom({
reactStrictMode: false,
- optimizePackageImports: [
- "@dub/email",
- "@dub/ui",
- "@dub/utils",
- "@team-plain/typescript-sdk",
- ],
transpilePackages: [
"shiki",
"@dub/prisma",
"@dub/email",
"@boxyhq/saml-jackson",
],
- ...(process.env.NODE_ENV === "production" && {
- experimental: {
+ experimental: {
+ optimizePackageImports: [
+ "@dub/email",
+ "@dub/ui",
+ "@dub/utils",
+ "@team-plain/typescript-sdk",
+ ],
+ ...(process.env.NODE_ENV === "production" && {
esmExternals: "loose",
- },
- }),
+ }),
+ },
webpack: (config, { webpack, isServer }) => {
if (isServer) {
config.plugins.push(