mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: transpile and optimize package imports
This commit is contained in:
@@ -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 [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user