fix: transpile and optimize package imports

This commit is contained in:
sriram veeraghanta
2025-03-21 01:51:50 +05:30
parent 94bf90dac5
commit 2eb1d03c20

View File

@@ -18,7 +18,39 @@ const nextConfig = {
images: {
unoptimized: true,
},
transpilePackages: ["@plane/i18n", "@plane/propel"],
experimental: {
optimizePackageImports: [
"lucide-react",
"date-fns",
"@headlessui/react",
"@nivo/core",
"@nivo/bar",
"@nivo/line",
"@nivo/pie",
"@nivo/calendar",
"@nivo/scatterplot",
"react-color",
"react-day-picker",
"react-dropzone",
"react-hook-form",
"lodash",
"clsx",
"tailwind-merge",
],
},
transpilePackages: [
"@plane/constants",
"@plane/editor",
"@plane/hooks",
"@plane/i18n",
"@plane/logger",
"@plane/propel",
"@plane/services",
"@plane/shared-state",
"@plane/types",
"@plane/ui",
"@plane/utils",
],
async redirects() {
return [
{