Add optimize package imports

This commit is contained in:
Vitaly Rtishchev
2023-10-02 16:52:00 +04:00
parent 0a09fb7218
commit b63d556e6a
3 changed files with 18 additions and 15 deletions

View File

@ -7,4 +7,7 @@ module.exports = withBundleAnalyzer({
eslint: { eslint: {
ignoreDuringBuilds: true, ignoreDuringBuilds: true,
}, },
experimental: {
optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
},
}); });

View File

@ -18,8 +18,8 @@
"storybook:build": "storybook build" "storybook:build": "storybook build"
}, },
"dependencies": { "dependencies": {
"@mantine/core": "7.1.0", "@mantine/core": "7.1.1-alpha.0",
"@mantine/hooks": "7.1.0", "@mantine/hooks": "7.1.1-alpha.0",
"@next/bundle-analyzer": "^13.5.3", "@next/bundle-analyzer": "^13.5.3",
"@tabler/icons-react": "^2.20.0", "@tabler/icons-react": "^2.20.0",
"next": "13.5.3", "next": "13.5.3",

View File

@ -1629,22 +1629,22 @@
resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60"
integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA== integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==
"@mantine/core@7.1.0": "@mantine/core@7.1.1-alpha.0":
version "7.1.0" version "7.1.1-alpha.0"
resolved "https://registry.yarnpkg.com/@mantine/core/-/core-7.1.0.tgz#06c1beaff53c06e4413ad87352edfd75e913440d" resolved "https://registry.yarnpkg.com/@mantine/core/-/core-7.1.1-alpha.0.tgz#38fd10fcf2248ec4e116db0ed9bc57141f7b8b57"
integrity sha512-DNexnix5Lz7na8bfXCNVDsCsorxMzF1we3mtU33B0mLyiLkH47BhpgKNxvf5OjEK5SUJ0Bi7r5m91Tm7pmAB7w== integrity sha512-EDrJEC7hblHQiJoNYSLkHwRFGI3muQla1rRhsRm1pXjteQ7qxbuIHFs+JCk948B8Ghrw/+5sHSQD81/ryp3D9g==
dependencies: dependencies:
"@floating-ui/react" "^0.24.8" "@floating-ui/react" "^0.24.8"
clsx "2.0.0" clsx "2.0.0"
react-number-format "^5.2.2" react-number-format "^5.2.2"
react-remove-scroll "^2.5.6" react-remove-scroll "^2.5.6"
react-textarea-autosize "8.5.2" react-textarea-autosize "8.5.3"
type-fest "^3.13.1" type-fest "^3.13.1"
"@mantine/hooks@7.1.0": "@mantine/hooks@7.1.1-alpha.0":
version "7.1.0" version "7.1.1-alpha.0"
resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-7.1.0.tgz#44e43df2eff9785296b8507048fe425bd01091ec" resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-7.1.1-alpha.0.tgz#9ca88103cd6d13f06e4cdc0c9e790a5c38d40036"
integrity sha512-XW8qYNoS81bIWmdI7yZV8BmBkTtr0//3fyBJ2dcKRSKWY5HVNPkLDXPQk9/E4bpQIRmufDGQ6pLmUfY+0VjO3g== integrity sha512-hx3Zo+Lh6NJbQLNEqHl6m1doFDzVUj/19Awnjk55g6pdC2XeKWM8ppYcs9/mbiyEsTrw8R/J8Au/ahRQe8TBiQ==
"@mdx-js/react@^2.1.5": "@mdx-js/react@^2.1.5":
version "2.3.0" version "2.3.0"
@ -9084,10 +9084,10 @@ react-style-singleton@^2.2.1:
invariant "^2.2.4" invariant "^2.2.4"
tslib "^2.0.0" tslib "^2.0.0"
react-textarea-autosize@8.5.2: react-textarea-autosize@8.5.3:
version "8.5.2" version "8.5.3"
resolved "https://registry.yarnpkg.com/react-textarea-autosize/-/react-textarea-autosize-8.5.2.tgz#6421df2b5b50b9ca8c5e96fd31be688ea7fa2f9d" resolved "https://registry.yarnpkg.com/react-textarea-autosize/-/react-textarea-autosize-8.5.3.tgz#d1e9fe760178413891484847d3378706052dd409"
integrity sha512-uOkyjkEl0ByEK21eCJMHDGBAAd/BoFQBawYK5XItjAmCTeSbjxghd8qnt7nzsLYzidjnoObu6M26xts0YGKsGg== integrity sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==
dependencies: dependencies:
"@babel/runtime" "^7.20.13" "@babel/runtime" "^7.20.13"
use-composed-ref "^1.3.0" use-composed-ref "^1.3.0"