fix: nextjs is slow dev server (#364)

* fix: nextjs slow compile time

* fix: change optimized package imports and transpile packages

* fix: format issue
This commit is contained in:
Meier Lukas
2024-04-25 22:06:15 +02:00
committed by GitHub
parent 04a313186f
commit b78d32b81c
112 changed files with 345 additions and 394 deletions

49
pnpm-lock.yaml generated
View File

@@ -7,13 +7,26 @@ settings:
importers:
.:
dependencies:
'@mantine/core':
specifier: ^7.8.0
version: 7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@mantine/dates':
specifier: ^7.8.0
version: 7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react@18.2.0)
'@tabler/icons-react':
specifier: ^3.2.0
version: 3.2.0(react@18.2.0)
mantine-react-table:
specifier: 2.0.0-beta.1
version: 2.0.0-beta.1(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react@18.2.0))(@mantine/dates@7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(@tabler/icons-react@3.2.0(react@18.2.0))(clsx@2.1.0)(dayjs@1.11.10)(react@18.2.0)
devDependencies:
'@homarr/prettier-config':
specifier: workspace:^0.1.0
version: link:tooling/prettier
'@testing-library/react-hooks':
specifier: ^8.0.1
version: 8.0.1(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
version: 8.0.1(@types/react@18.2.79)(react@18.2.0)
'@turbo/gen':
specifier: ^1.13.2
version: 1.13.2(@types/node@20.12.7)(typescript@5.4.5)
@@ -711,19 +724,6 @@ importers:
version: 5.4.5
packages/ui:
dependencies:
'@mantine/core':
specifier: ^7.8.0
version: 7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@mantine/dates':
specifier: ^7.8.0
version: 7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@tabler/icons-react':
specifier: ^3.2.0
version: 3.2.0(react@18.2.0)
mantine-react-table:
specifier: 2.0.0-beta.1
version: 2.0.0-beta.1(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/dates@7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(@tabler/icons-react@3.2.0(react@18.2.0))(clsx@2.1.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
devDependencies:
'@homarr/eslint-config':
specifier: workspace:^0.2.0
@@ -6361,14 +6361,13 @@ snapshots:
transitivePeerDependencies:
- '@types/react'
'@mantine/dates@7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)':
'@mantine/dates@7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react@18.2.0)':
dependencies:
'@mantine/core': 7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@mantine/hooks': 7.8.0(react@18.2.0)
clsx: 2.1.0
dayjs: 1.11.10
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
'@mantine/form@7.8.0(react@18.2.0)':
dependencies:
@@ -6607,30 +6606,27 @@ snapshots:
'@tanstack/query-core': 5.29.0
react: 18.2.0
'@tanstack/react-table@8.15.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)':
'@tanstack/react-table@8.15.0(react@18.2.0)':
dependencies:
'@tanstack/table-core': 8.14.0
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
'@tanstack/react-virtual@3.2.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)':
'@tanstack/react-virtual@3.2.0(react@18.2.0)':
dependencies:
'@tanstack/virtual-core': 3.2.0
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
'@tanstack/table-core@8.14.0': {}
'@tanstack/virtual-core@3.2.0': {}
'@testing-library/react-hooks@8.0.1(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)':
'@testing-library/react-hooks@8.0.1(@types/react@18.2.79)(react@18.2.0)':
dependencies:
'@babel/runtime': 7.23.9
react: 18.2.0
react-error-boundary: 3.1.4(react@18.2.0)
optionalDependencies:
'@types/react': 18.2.79
react-dom: 18.2.0(react@18.2.0)
'@tiptap/core@2.2.6(@tiptap/pm@2.2.4)':
dependencies:
@@ -9153,19 +9149,18 @@ snapshots:
make-error@1.3.6: {}
mantine-react-table@2.0.0-beta.1(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/dates@7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(@tabler/icons-react@3.2.0(react@18.2.0))(clsx@2.1.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0):
mantine-react-table@2.0.0-beta.1(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react@18.2.0))(@mantine/dates@7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(@tabler/icons-react@3.2.0(react@18.2.0))(clsx@2.1.0)(dayjs@1.11.10)(react@18.2.0):
dependencies:
'@mantine/core': 7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@mantine/dates': 7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@mantine/dates': 7.8.0(@mantine/core@7.8.0(@mantine/hooks@7.8.0(react@18.2.0))(@types/react@18.2.79)(react@18.2.0))(@mantine/hooks@7.8.0(react@18.2.0))(dayjs@1.11.10)(react@18.2.0)
'@mantine/hooks': 7.8.0(react@18.2.0)
'@tabler/icons-react': 3.2.0(react@18.2.0)
'@tanstack/match-sorter-utils': 8.11.8
'@tanstack/react-table': 8.15.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@tanstack/react-virtual': 3.2.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
'@tanstack/react-table': 8.15.0(react@18.2.0)
'@tanstack/react-virtual': 3.2.0(react@18.2.0)
clsx: 2.1.0
dayjs: 1.11.10
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
markdown-it@14.0.0:
dependencies: