From b63d556e6aa85e88ab0ec138cf148e13675eb7c1 Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Mon, 2 Oct 2023 16:52:00 +0400 Subject: [PATCH] Add optimize package imports --- next.config.js | 3 +++ package.json | 4 ++-- yarn.lock | 26 +++++++++++++------------- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/next.config.js b/next.config.js index 7ce9ff4..1a3b582 100644 --- a/next.config.js +++ b/next.config.js @@ -7,4 +7,7 @@ module.exports = withBundleAnalyzer({ eslint: { ignoreDuringBuilds: true, }, + experimental: { + optimizePackageImports: ['@mantine/core', '@mantine/hooks'], + }, }); diff --git a/package.json b/package.json index 646e494..d4528f4 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "storybook:build": "storybook build" }, "dependencies": { - "@mantine/core": "7.1.0", - "@mantine/hooks": "7.1.0", + "@mantine/core": "7.1.1-alpha.0", + "@mantine/hooks": "7.1.1-alpha.0", "@next/bundle-analyzer": "^13.5.3", "@tabler/icons-react": "^2.20.0", "next": "13.5.3", diff --git a/yarn.lock b/yarn.lock index e4a74e5..2ec91b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1629,22 +1629,22 @@ resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA== -"@mantine/core@7.1.0": - version "7.1.0" - resolved "https://registry.yarnpkg.com/@mantine/core/-/core-7.1.0.tgz#06c1beaff53c06e4413ad87352edfd75e913440d" - integrity sha512-DNexnix5Lz7na8bfXCNVDsCsorxMzF1we3mtU33B0mLyiLkH47BhpgKNxvf5OjEK5SUJ0Bi7r5m91Tm7pmAB7w== +"@mantine/core@7.1.1-alpha.0": + version "7.1.1-alpha.0" + resolved "https://registry.yarnpkg.com/@mantine/core/-/core-7.1.1-alpha.0.tgz#38fd10fcf2248ec4e116db0ed9bc57141f7b8b57" + integrity sha512-EDrJEC7hblHQiJoNYSLkHwRFGI3muQla1rRhsRm1pXjteQ7qxbuIHFs+JCk948B8Ghrw/+5sHSQD81/ryp3D9g== dependencies: "@floating-ui/react" "^0.24.8" clsx "2.0.0" react-number-format "^5.2.2" react-remove-scroll "^2.5.6" - react-textarea-autosize "8.5.2" + react-textarea-autosize "8.5.3" type-fest "^3.13.1" -"@mantine/hooks@7.1.0": - version "7.1.0" - resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-7.1.0.tgz#44e43df2eff9785296b8507048fe425bd01091ec" - integrity sha512-XW8qYNoS81bIWmdI7yZV8BmBkTtr0//3fyBJ2dcKRSKWY5HVNPkLDXPQk9/E4bpQIRmufDGQ6pLmUfY+0VjO3g== +"@mantine/hooks@7.1.1-alpha.0": + version "7.1.1-alpha.0" + resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-7.1.1-alpha.0.tgz#9ca88103cd6d13f06e4cdc0c9e790a5c38d40036" + integrity sha512-hx3Zo+Lh6NJbQLNEqHl6m1doFDzVUj/19Awnjk55g6pdC2XeKWM8ppYcs9/mbiyEsTrw8R/J8Au/ahRQe8TBiQ== "@mdx-js/react@^2.1.5": version "2.3.0" @@ -9084,10 +9084,10 @@ react-style-singleton@^2.2.1: invariant "^2.2.4" tslib "^2.0.0" -react-textarea-autosize@8.5.2: - version "8.5.2" - resolved "https://registry.yarnpkg.com/react-textarea-autosize/-/react-textarea-autosize-8.5.2.tgz#6421df2b5b50b9ca8c5e96fd31be688ea7fa2f9d" - integrity sha512-uOkyjkEl0ByEK21eCJMHDGBAAd/BoFQBawYK5XItjAmCTeSbjxghd8qnt7nzsLYzidjnoObu6M26xts0YGKsGg== +react-textarea-autosize@8.5.3: + version "8.5.3" + resolved "https://registry.yarnpkg.com/react-textarea-autosize/-/react-textarea-autosize-8.5.3.tgz#d1e9fe760178413891484847d3378706052dd409" + integrity sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ== dependencies: "@babel/runtime" "^7.20.13" use-composed-ref "^1.3.0"