diff --git a/package.json b/package.json index e20f03e..fa9a1d8 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^4.4.0", + "terser": "^5.24.0", "tsup": "^7.2.0", "typescript": "^5.2.2", "vite": "^4.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7ab589a..4508e54 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '6.0' settings: - autoInstallPeers: true + autoInstallPeers: false excludeLinksFromLockfile: false importers: @@ -23,7 +23,7 @@ importers: devDependencies: '@ant-design/pro-table': specifier: ^3.13.11 - version: 3.13.11(antd@5.3.0)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0) + version: 3.13.11(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0) '@minko-fe/eslint-config': specifier: ^2.0.5 version: 2.0.5(eslint@8.52.0) @@ -96,6 +96,9 @@ importers: rimraf: specifier: ^4.4.0 version: 4.4.0 + terser: + specifier: ^5.24.0 + version: 5.24.0 tsup: specifier: ^7.2.0 version: 7.2.0(postcss@8.4.31)(typescript@5.2.2) @@ -104,16 +107,16 @@ importers: version: 5.2.2 vite: specifier: ^4.1.4 - version: 4.1.4(@types/node@18.14.6) + version: 4.1.4(@types/node@18.14.6)(terser@5.24.0) vitest: specifier: ^0.34.0 - version: 0.34.0(@vitest/ui@0.34.0)(jsdom@21.1.0) + version: 0.34.0(@vitest/ui@0.34.0)(jsdom@21.1.0)(terser@5.24.0) playground: dependencies: '@ant-design/pro-table': specifier: ^3.4.0 - version: 3.12.14(antd@5.1.2)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0) + version: 3.12.14(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0) ahooks: specifier: ^3.7.5 version: 3.7.8(react@18.2.0) @@ -159,7 +162,7 @@ importers: version: 5.2.2 vite: specifier: ^4.4.11 - version: 4.4.11(@types/node@18.14.6)(less@4.2.0) + version: 4.4.11(@types/node@18.14.6)(less@4.2.0)(terser@5.24.0) packages: @@ -203,8 +206,8 @@ packages: classnames: 2.3.2 csstype: 3.1.2 rc-util: 5.38.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) stylis: 4.3.0 /@ant-design/cssinjs@1.6.1(react-dom@18.2.0)(react@18.2.0): @@ -219,8 +222,8 @@ packages: classnames: 2.3.2 csstype: 3.1.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) stylis: 4.1.3 /@ant-design/icons-svg@4.2.1: @@ -275,8 +278,8 @@ packages: '@babel/runtime': 7.23.2 classnames: 2.3.2 rc-util: 5.38.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /@ant-design/pro-card@2.5.20(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-dxHphuRNOeWTk5kqN8lW++0Vksm3ZATldwYEqV4KBC7uLPWWgudv/E00C3mBSvoMb/mbfJcwSfxW5Fm41XDDeA==} @@ -364,7 +367,7 @@ packages: - react-dom dev: true - /@ant-design/pro-form@2.21.2(antd@5.1.2)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0): + /@ant-design/pro-form@2.21.2(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-zHSgVUU6LA4YnbDafl0N+WosghGMuh/+YDPi8GI6UcdoUbkU8k91SnWaU4/dJ3qbNnig+bnRL4wB2OV9EHyLLA==} peerDependencies: '@types/lodash.merge': ^4.6.7 @@ -388,14 +391,13 @@ packages: dayjs: 1.11.10 lodash.merge: 4.6.2 omit.js: 2.0.2 - rc-field-form: 1.40.0(react-dom@18.2.0)(react@18.2.0) rc-resize-observer: 1.3.1(react-dom@18.2.0)(react@18.2.0) rc-util: 5.38.0(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) dev: false - /@ant-design/pro-form@2.23.1(antd@5.3.0)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0): + /@ant-design/pro-form@2.23.1(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-ia4obGA/AmjSm74Fg2fyd+4AI1VyM9Dpu6VYiiAvkO8ZxfyhDzAT1V9zHSCzU9M7Pu/G2hw/8bhovwy5waVtFg==} peerDependencies: '@types/lodash.merge': ^4.6.7 @@ -419,7 +421,6 @@ packages: dayjs: 1.11.10 lodash.merge: 4.6.2 omit.js: 2.0.2 - rc-field-form: 1.40.0(react-dom@18.2.0)(react@18.2.0) rc-resize-observer: 1.3.1(react-dom@18.2.0)(react@18.2.0) rc-util: 5.38.0(react-dom@18.2.0)(react@18.2.0) react: registry.npmmirror.com/react@18.2.0 @@ -460,7 +461,7 @@ packages: swr: 2.2.4(react@18.2.0) dev: true - /@ant-design/pro-table@3.12.14(antd@5.1.2)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0): + /@ant-design/pro-table@3.12.14(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-giVx/toRgK03gQL7vmVdtpEJrtW/isniNQMHhdHmujQR9E+As8muAMYXQ/9mij85O0SnSz1TcSK/vls7pXa4zg==} peerDependencies: antd: '>=4.23.0 || >=5.0.0' @@ -471,7 +472,7 @@ packages: '@ant-design/icons': 5.2.6(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-card': 2.5.20(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-field': 2.13.1(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0) - '@ant-design/pro-form': 2.21.2(antd@5.1.2)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0) + '@ant-design/pro-form': 2.21.2(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-provider': 2.13.1(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-utils': 2.14.8(antd@5.1.2)(react-dom@18.2.0)(react@18.2.0) '@babel/runtime': 7.23.2 @@ -483,7 +484,6 @@ packages: classnames: 2.3.2 dayjs: 1.11.10 omit.js: 2.0.2 - rc-field-form: 1.40.0(react-dom@18.2.0)(react@18.2.0) rc-resize-observer: 1.3.1(react-dom@18.2.0)(react@18.2.0) rc-util: 5.38.0(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 @@ -492,7 +492,7 @@ packages: - '@types/lodash.merge' dev: false - /@ant-design/pro-table@3.13.11(antd@5.3.0)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0): + /@ant-design/pro-table@3.13.11(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-H8vIApenqscN6zTvtN5SX70WOy9JTCAFwYmQrVHNGQxyrsGZC89AltNdQIw/9JpwOjGYR03icrs7SZAnrmZTag==} peerDependencies: antd: ^4.24.15 || ^5.11.2 @@ -503,7 +503,7 @@ packages: '@ant-design/icons': 5.2.6(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-card': 2.5.27(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-field': 2.14.2(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0) - '@ant-design/pro-form': 2.23.1(antd@5.3.0)(rc-field-form@1.40.0)(react-dom@18.2.0)(react@18.2.0) + '@ant-design/pro-form': 2.23.1(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-provider': 2.13.5(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0) '@ant-design/pro-utils': 2.15.2(antd@5.3.0)(react-dom@18.2.0)(react@18.2.0) '@babel/runtime': 7.23.2 @@ -515,7 +515,6 @@ packages: classnames: 2.3.2 dayjs: 1.11.10 omit.js: 2.0.2 - rc-field-form: 1.40.0(react-dom@18.2.0)(react@18.2.0) rc-resize-observer: 1.3.1(react-dom@18.2.0)(react@18.2.0) rc-util: 5.38.0(react-dom@18.2.0)(react@18.2.0) react: registry.npmmirror.com/react@18.2.0 @@ -574,7 +573,7 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 json2mq: 0.2.0 - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 resize-observer-polyfill: 1.5.1 throttle-debounce: 5.0.0 @@ -839,7 +838,7 @@ packages: peerDependencies: react: '>=16.12.0' dependencies: - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 reactcss: 1.2.3(react@18.2.0) tinycolor2: 1.6.0 @@ -856,7 +855,7 @@ packages: peerDependencies: react: '>=16.8.0' dependencies: - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 tslib: 2.6.2 /@dnd-kit/core@6.0.8(react-dom@18.2.0)(react@18.2.0): @@ -867,8 +866,8 @@ packages: dependencies: '@dnd-kit/accessibility': 3.0.1(react@18.2.0) '@dnd-kit/utilities': 3.2.1(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) tslib: 2.6.2 /@dnd-kit/modifiers@6.0.1(@dnd-kit/core@6.0.8)(react@18.2.0): @@ -879,7 +878,7 @@ packages: dependencies: '@dnd-kit/core': 6.0.8(react-dom@18.2.0)(react@18.2.0) '@dnd-kit/utilities': 3.2.1(react@18.2.0) - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 tslib: 2.6.2 /@dnd-kit/sortable@7.0.2(@dnd-kit/core@6.0.8)(react@18.2.0): @@ -890,7 +889,7 @@ packages: dependencies: '@dnd-kit/core': 6.0.8(react-dom@18.2.0)(react@18.2.0) '@dnd-kit/utilities': 3.2.1(react@18.2.0) - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 tslib: 2.6.2 /@dnd-kit/utilities@3.2.1(react@18.2.0): @@ -898,7 +897,7 @@ packages: peerDependencies: react: '>=16.8.0' dependencies: - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 tslib: 2.6.2 /@emotion/hash@0.8.0: @@ -1410,6 +1409,13 @@ packages: engines: {node: '>=6.0.0'} dev: true + /@jridgewell/source-map@0.3.5: + resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.19 + dev: true + /@jridgewell/sourcemap-codec@1.4.15: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true @@ -1575,8 +1581,8 @@ packages: '@babel/runtime': 7.23.2 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /@rc-component/tour@1.1.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-Cy45VnNEDq6DLF5eKonIflObDfofbPq7AJpSf18qLN+j9+wW+sNlRv3JnCMDUsCdhSlnM4+yJ1RMokKp9GCpOQ==} @@ -1997,7 +2003,7 @@ packages: peerDependencies: react: '*' dependencies: - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -2014,7 +2020,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.23.2) '@types/babel__core': 7.20.2 react-refresh: 0.14.0 - vite: 4.4.11(@types/node@18.14.6)(less@4.2.0) + vite: 4.4.11(@types/node@18.14.6)(less@4.2.0)(terser@5.24.0) transitivePeerDependencies: - supports-color dev: true @@ -2061,7 +2067,7 @@ packages: pathe: 1.1.1 picocolors: 1.0.0 sirv: 2.0.3 - vitest: 0.34.0(@vitest/ui@0.34.0)(jsdom@21.1.0) + vitest: 0.34.0(@vitest/ui@0.34.0)(jsdom@21.1.0)(terser@5.24.0) dev: true /@vitest/utils@0.34.0: @@ -2087,7 +2093,7 @@ packages: /acorn-globals@7.0.1: resolution: {integrity: sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==} dependencies: - acorn: 8.8.2 + acorn: 8.11.2 acorn-walk: 8.2.0 dev: true @@ -2494,6 +2500,10 @@ packages: update-browserslist-db: 1.0.13(browserslist@4.22.1) dev: true + /buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + dev: true + /builtin-modules@3.3.0: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} @@ -2691,6 +2701,10 @@ packages: delayed-stream: 1.0.0 dev: true + /commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + dev: true + /commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} @@ -5763,7 +5777,7 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 /qs@6.11.2: resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==} @@ -5790,8 +5804,8 @@ packages: classnames: 2.3.2 dom-align: 1.12.4 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) resize-observer-polyfill: 1.5.1 /rc-cascader@3.8.1(react-dom@18.2.0)(react@18.2.0): @@ -5834,8 +5848,8 @@ packages: dependencies: '@babel/runtime': 7.21.0 classnames: 2.3.2 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-collapse@3.4.2(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-jpTwLgJzkhAgp2Wpi3xmbTbbYExg6fkptL67Uu5LCRVEj6wqmy0DHTjjeynsjOLsppHGHu41t1ELntZ0lEvS/Q==} @@ -5877,8 +5891,8 @@ packages: classnames: 2.3.2 rc-motion: 2.6.3(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-drawer@6.1.3(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-AvHisO90A+xMLMKBw2zs89HxjWxusM2BUABlgK60RhweIHF8W/wk0hSOrxBlUXoA9r1F+10na3g6GZ97y1qDZA==} @@ -5891,8 +5905,8 @@ packages: classnames: 2.3.2 rc-motion: 2.6.3(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-dropdown@4.0.1(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-OdpXuOcme1rm45cR0Jzgfl1otzmU4vuBVb+etXM8vcaULGokAKVpKlw8p6xzspG7jGd/XxShvq+N3VNEfk/l5g==} @@ -5904,8 +5918,8 @@ packages: classnames: 2.3.2 rc-trigger: 5.3.4(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-field-form@1.27.4(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-PQColQnZimGKArnOh8V2907+VzDCXcqtFvHgevDLtqWc/P7YASb/FqntSmdS8q3VND5SHX3Y1vgMIzY22/f/0Q==} @@ -5917,21 +5931,8 @@ packages: '@babel/runtime': 7.21.0 async-validator: 4.2.5 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - - /rc-field-form@1.40.0(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-OM3N01X2BYFGJDJcwpk9/BBtlwgveE7eh2SQAKIxVCt9KVWlODYJ9ypTHQdxchfDbeJKJKxMBFXlLAmyvlgPHg==} - engines: {node: '>=8.x'} - peerDependencies: - react: '>=16.9.0' - react-dom: '>=16.9.0' - dependencies: - '@babel/runtime': 7.23.2 - async-validator: 4.2.5 - rc-util: 5.38.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-image@5.13.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-iZTOmw5eWo2+gcrJMMcnd7SsxVHl3w5xlyCgsULUdJhJbnuI8i/AL0tVOsE7aLn9VfOh1qgDT3mC2G75/c7mqg==} @@ -5975,8 +5976,8 @@ packages: '@rc-component/mini-decimal': 1.0.1 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-input@0.1.4(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-FqDdNz+fV2dKNgfXzcSLKvC+jEs1709t7nD+WdfjrdSaOcefpgc7BUJYadc3usaING+b7ediMTfKxuJBsEFbXA==} @@ -6049,8 +6050,8 @@ packages: rc-overflow: 1.2.8(react-dom@18.2.0)(react@18.2.0) rc-trigger: 5.3.4(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-motion@2.6.3(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-xFLkes3/7VL/J+ah9jJruEW/Akbx5F6jVa2wG5o/ApGKQKSOd5FR3rseHLL9+xtJg4PmCwo6/1tqhDO/T+jFHA==} @@ -6061,8 +6062,8 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-notification@5.0.2(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-74wUFiLlyr6lRGEY1m1BaTiDp+0lIT4FRAblMnh9FApyK2JGdsSLbrQ/1rgM7d2N/IX5UIr8kLLW3TdXxFt/jQ==} @@ -6075,8 +6076,8 @@ packages: classnames: 2.3.2 rc-motion: 2.6.3(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-overflow@1.2.8(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-QJ0UItckWPQ37ZL1dMEBAdY1dhfTXFL9k6oTTcyydVwoUNMnMqCGqnRNA98axSr/OeDKqR6DVFyi8eA5RQI/uQ==} @@ -6088,8 +6089,8 @@ packages: classnames: 2.3.2 rc-resize-observer: 1.3.1(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-pagination@3.2.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-5tIXjB670WwwcAJzAqp2J+cOBS9W3cH/WU1EiYwXljuZ4vtZXKlY2Idq8FZrnYBz8KhN3vwPo9CoV/SJS6SL1w==} @@ -6099,8 +6100,8 @@ packages: dependencies: '@babel/runtime': 7.21.0 classnames: 2.3.2 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-picker@3.1.5(dayjs@1.11.7)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-Hh3ml+u+5mxLfl4ahVWlRGiX5+0EJrALR6tSW9yP0eea+6j+YjvjfetbvuVidViMDMweZa38dr8HTfAFLG6GFw==} @@ -6163,8 +6164,8 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-rate@2.9.2(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-SaiZFyN8pe0Fgphv8t3+kidlej+cq/EALkAJAc3A0w0XcPaH2L1aggM8bhe1u6GAGuQNAoFvTLjw4qLPGRKV5g==} @@ -6176,8 +6177,8 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-resize-observer@1.3.1(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-iFUdt3NNhflbY3mwySv5CA1TC06zdJ+pfo0oc27xpf4PIOvfZwZGtD9Kz41wGYqC4SLio93RVAirSSpYlV/uYg==} @@ -6188,8 +6189,8 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) resize-observer-polyfill: 1.5.1 /rc-segmented@2.1.2(react-dom@18.2.0)(react@18.2.0): @@ -6202,8 +6203,8 @@ packages: classnames: 2.3.2 rc-motion: 2.6.3(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-select@14.2.2(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-w+LuiYGFWgaV23PuxtdeWtXSsoxt+eCfzxu/CvRuqSRm8tn/pqvAb1xUIDAjoMMWK1FqiOW4jI/iMt7ZRG/BBg==} @@ -6280,8 +6281,8 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-switch@4.0.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-IfrYC99vN0gKaTyjQdqYuADU0eH00SAFHg3jOp8HrmUpJruhV1SohJzrCbPqPraZeX/6X/QKkdLfkdnUub05WA==} @@ -6292,8 +6293,8 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-table@7.28.3(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-jiPtBDqcs0wF0KOJgkhDgxN6+vq4jHbteddE15IR6RajlVkAk+kRIecyBY28b+vg199yQiu/NGuSRKJKEGOWBQ==} @@ -6341,8 +6342,8 @@ packages: rc-motion: 2.6.3(react-dom@18.2.0)(react@18.2.0) rc-resize-observer: 1.3.1(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-textarea@0.4.7(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-IQPd1CDI3mnMlkFyzt2O4gQ2lxUsnBAeJEoZGJnkkXgORNqyM9qovdrCj9NzcRfpHgLdzaEbU3AmobNFGUznwQ==} @@ -6442,8 +6443,8 @@ packages: rc-motion: 2.6.3(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) rc-virtual-list: 3.4.13(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-trigger@5.3.4(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-mQv+vas0TwKcjAO2izNPkqR4j86OemLRmvL2nOzdP9OWNWA1ivoTt5hzFqYNW9zACwmTezRiN8bttrC7cZzYSw==} @@ -6457,8 +6458,8 @@ packages: rc-align: 4.0.15(react-dom@18.2.0)(react@18.2.0) rc-motion: 2.6.3(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-upload@4.3.4(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-uVbtHFGNjHG/RyAfm9fluXB6pvArAGyAx8z7XzXXyorEgVIWj6mOlriuDm0XowDHYz4ycNK0nE0oP3cbFnzxiQ==} @@ -6469,8 +6470,8 @@ packages: '@babel/runtime': 7.21.0 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /rc-util@5.28.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-KYDjhGodswVj29v0TRciKTqRPgumIFvFDndbCD227pitQ+0Cei196rxk+OXb/blu6V8zdTRK5RjCJn+WmHLvBA==} @@ -6479,8 +6480,8 @@ packages: react-dom: '>=16.9.0' dependencies: '@babel/runtime': 7.21.0 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) react-is: 16.13.1 /rc-util@5.38.0(react-dom@18.2.0)(react@18.2.0): @@ -6490,8 +6491,8 @@ packages: react-dom: '>=16.9.0' dependencies: '@babel/runtime': 7.23.2 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) react-is: 18.2.0 /rc-virtual-list@3.4.13(react-dom@18.2.0)(react@18.2.0): @@ -6505,8 +6506,8 @@ packages: classnames: 2.3.2 rc-resize-observer: 1.3.1(react-dom@18.2.0)(react@18.2.0) rc-util: 5.28.0(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) /react-detectable-overflow@0.7.1(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-6ZotWaoCChrd9/ZISopZwpDN4kJkFNSX7zvDWF56HIzHdx8DfMQ78P4JAy0ZoAUi+9gDrhRynXaONCYVEvxDog==} @@ -6528,6 +6529,7 @@ packages: loose-envify: 1.4.0 react: 18.2.0 scheduler: 0.23.0 + dev: false /react-draggable@4.4.4(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-6e0WdcNLwpBx/YIDpoyd2Xb04PB0elrDrulKUgdrIlwuYvxh5Ok9M+F8cljm8kPXXs43PmMzek9RrB1b7mLMqA==} @@ -6607,6 +6609,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 + dev: false /reactcss@1.2.3(react@18.2.0): resolution: {integrity: sha512-KiwVUcFu1RErkI97ywr8nvx8dNOpT03rbnma0SSalTYjkrPYaEajR4a/MRt6DZ46K6arDRbWMNHF+xH7G7n/8A==} @@ -6614,7 +6617,7 @@ packages: react: '*' dependencies: lodash: 4.17.21 - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 /read-cache@1.0.0: resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} @@ -6861,6 +6864,7 @@ packages: resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} dependencies: loose-envify: 1.4.0 + dev: false /screenfull@5.2.0: resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} @@ -6971,6 +6975,13 @@ packages: engines: {node: '>=0.10.0'} dev: true + /source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + dev: true + /source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} @@ -7156,7 +7167,7 @@ packages: react: ^16.11.0 || ^17.0.0 || ^18.0.0 dependencies: client-only: 0.0.1 - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) /symbol-tree@3.2.4: @@ -7183,6 +7194,17 @@ packages: temp-dir: 3.0.0 dev: true + /terser@5.24.0: + resolution: {integrity: sha512-ZpGR4Hy3+wBEzVEnHvstMvqpD/nABNelQn/z2r0fjVWGQsN3bpOLzQlqDxmb4CDZnXq5lpjnQ+mHQLAOpfM5iw==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.5 + acorn: 8.11.2 + commander: 2.20.3 + source-map-support: 0.5.21 + dev: true + /text-extensions@2.4.0: resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} engines: {node: '>=8'} @@ -7506,7 +7528,7 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: - react: 18.2.0 + react: registry.npmmirror.com/react@18.2.0 /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -7519,7 +7541,7 @@ packages: spdx-expression-parse: 3.0.1 dev: true - /vite-node@0.34.0(@types/node@18.14.6): + /vite-node@0.34.0(@types/node@18.14.6)(terser@5.24.0): resolution: {integrity: sha512-rGZMvpb052rjUwJA/a17xMfOibzNF7byMdRSTcN2Lw8uxX08s5EfjWW5mBkm3MSFTPctMSVtT2yC+8ShrZbT5g==} engines: {node: '>=v14.18.0'} hasBin: true @@ -7529,7 +7551,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.11(@types/node@18.14.6)(less@4.2.0) + vite: 4.4.11(@types/node@18.14.6)(less@4.2.0)(terser@5.24.0) transitivePeerDependencies: - '@types/node' - less @@ -7541,7 +7563,7 @@ packages: - terser dev: true - /vite@4.1.4(@types/node@18.14.6): + /vite@4.1.4(@types/node@18.14.6)(terser@5.24.0): resolution: {integrity: sha512-3knk/HsbSTKEin43zHu7jTwYWv81f8kgAL99G5NWBcA1LKvtvcVAC4JjBH1arBunO9kQka+1oGbrMKOjk4ZrBg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -7571,11 +7593,12 @@ packages: postcss: 8.4.31 resolve: 1.22.8 rollup: 3.29.4 + terser: 5.24.0 optionalDependencies: fsevents: 2.3.3 dev: true - /vite@4.4.11(@types/node@18.14.6)(less@4.2.0): + /vite@4.4.11(@types/node@18.14.6)(less@4.2.0)(terser@5.24.0): resolution: {integrity: sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -7608,11 +7631,12 @@ packages: less: 4.2.0 postcss: 8.4.31 rollup: 3.29.4 + terser: 5.24.0 optionalDependencies: fsevents: 2.3.3 dev: true - /vitest@0.34.0(@vitest/ui@0.34.0)(jsdom@21.1.0): + /vitest@0.34.0(@vitest/ui@0.34.0)(jsdom@21.1.0)(terser@5.24.0): resolution: {integrity: sha512-8Pnc1fVt1P6uBncdUZ++hgiJGgxIRKuz4bmS/PQziaEcUj0D1g9cGiR1MbLrcsvFTC6fgrqDhYoTAdBG356WMA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -7666,8 +7690,8 @@ packages: strip-literal: 1.0.1 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.4.11(@types/node@18.14.6)(less@4.2.0) - vite-node: 0.34.0(@types/node@18.14.6) + vite: 4.4.11(@types/node@18.14.6)(less@4.2.0)(terser@5.24.0) + vite-node: 0.34.0(@types/node@18.14.6)(terser@5.24.0) why-is-node-running: 2.2.2 transitivePeerDependencies: - less diff --git a/tsup.config.ts b/tsup.config.ts index 569bd87..e743266 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -18,6 +18,7 @@ export default defineConfig((options) => ({ bundle: true, splitting: true, treeshake: true, + minify: !options.watch && 'terser', banner(ctx) { return { js: ctx.format === 'cjs' ? `require('./index.css');` : `import './index.css';`,