fix: transpile and optimize package imports
This commit is contained in:
parent
94bf90dac5
commit
2eb1d03c20
1 changed files with 33 additions and 1 deletions
|
|
@ -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 [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue