diff --git a/README.md b/README.md index ee43e96..95c910e 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ The repository contains the Storybook Rsbuild builder and framework integrations | ------------------------------------------------------- | ---------------------------------------------------- | | [storybook-builder-rsbuild](./packages/builder-rsbuild) | Rsbuild powered builder for Storybook | | [storybook-react-rsbuild](./packages/react-rsbuild) | React integration for Storybook with Rsbuild builder | -| [storybook-vue3-rsbuild](./packages/vue3-rsbuild) | Vue3 integration for Storybook with Rsbuild builder | +| [storybook-vue3-rsbuild](./packages/vue3-rsbuild) | Vue 3 integration for Storybook with Rsbuild builder | ## Usage > [!NOTE] -> Requirements: `@rsbuild/core >= 0.6.15` and `storybook >= 8.0` (checkout Storybook's [release note](https://storybook.js.org/blog/storybook-8/) for migration) +> Requirements: `@rsbuild/core >= 0.7.0` and `storybook >= 8.0` (checkout Storybook's [release note](https://storybook.js.org/blog/storybook-8/) for migration) In Storybook v8, you don't need to manually install storybook-builder-rsbuild, it has been depended by the framework, such as `storybook-react-rsbuild` and `storybook-vue3-rsbuild`. @@ -41,7 +41,7 @@ In Storybook v8, you don't need to manually install storybook-builder-rsbuild, i You're all set now. You could also checkout the example in [sandboxes/react-rsbuild](./sandboxes/react-rsbuild). -### Use with Vue3 +### Use with Vue 3 1. Install Vue3 framework integration ```bash diff --git a/packages/builder-rsbuild/package.json b/packages/builder-rsbuild/package.json index ea7df23..809a763 100644 --- a/packages/builder-rsbuild/package.json +++ b/packages/builder-rsbuild/package.json @@ -60,7 +60,7 @@ "prep": "node --loader ../../scripts/node_modules/esbuild-register/loader.js -r ../../scripts/node_modules/esbuild-register/register.js ../../scripts/prepare/bundle.ts" }, "dependencies": { - "@rsbuild/plugin-type-check": "0.6.15", + "@rsbuild/plugin-type-check": "0.7.9", "@storybook/addon-docs": "^8.0.10", "@storybook/channels": "^8.0.10", "@storybook/client-logger": "^8.0.10", @@ -90,7 +90,7 @@ "util-deprecate": "^1.0.2" }, "devDependencies": { - "@rsbuild/core": "0.6.15", + "@rsbuild/core": "0.7.9", "@types/express": "^4.17.21", "@types/fs-extra": "^11.0.4", "@types/node": "^18.0.0", @@ -101,7 +101,7 @@ "typescript": "^5.3.2" }, "peerDependencies": { - "@rsbuild/core": ">= 0.6.15" + "@rsbuild/core": ">= 0.7.0" }, "peerDependenciesMeta": { "typescript": { diff --git a/packages/builder-rsbuild/src/index.ts b/packages/builder-rsbuild/src/index.ts index 1f3ed9e..ad29048 100644 --- a/packages/builder-rsbuild/src/index.ts +++ b/packages/builder-rsbuild/src/index.ts @@ -1,5 +1,4 @@ import * as rsbuildReal from '@rsbuild/core' -import type { createDevServer } from '@rsbuild/core/dist/internal' import type { Options } from '@storybook/types' import { dirname, join, parse } from 'path' import express from 'express' @@ -15,7 +14,9 @@ import prettyTime from 'pretty-hrtime' export * from './types' export * from './preview/virtual-module-mapping' -type RsbuildDevServer = Awaited> +type RsbuildDevServer = Awaited< + ReturnType +> type StatsOrMultiStats = Parameters[0]['stats'] export type Stats = NonNullable< Exclude diff --git a/packages/react-rsbuild/package.json b/packages/react-rsbuild/package.json index 7616d03..b728556 100644 --- a/packages/react-rsbuild/package.json +++ b/packages/react-rsbuild/package.json @@ -53,7 +53,6 @@ "prep": "node --loader ../../scripts/node_modules/esbuild-register/loader.js -r ../../scripts/node_modules/esbuild-register/register.js ../../scripts/prepare/bundle.ts" }, "dependencies": { - "@rsbuild/core": "0.6.15", "@storybook/docs-tools": "^8.0.10", "@storybook/node-logger": "^8.0.10", "@storybook/react": "^8.0.10", @@ -67,12 +66,14 @@ "tsconfig-paths": "^4.2.0" }, "devDependencies": { + "@rsbuild/core": "0.7.9", "@storybook/types": "^8.0.10", "@types/resolve": "^1.20.6", "add": "^2.0.6", "typescript": "^5.3.2" }, "peerDependencies": { + "@rsbuild/core": ">= 0.7.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "typescript": ">= 4.2.x" diff --git a/packages/vue3-rsbuild/package.json b/packages/vue3-rsbuild/package.json index fce3070..90915c2 100644 --- a/packages/vue3-rsbuild/package.json +++ b/packages/vue3-rsbuild/package.json @@ -49,7 +49,6 @@ "prep": "node --loader ../../scripts/node_modules/esbuild-register/loader.js -r ../../scripts/node_modules/esbuild-register/register.js ../../scripts/prepare/bundle.ts" }, "dependencies": { - "@rsbuild/core": "0.6.15", "@storybook/docs-tools": "^8.0.10", "@storybook/types": "^8.0.10", "@storybook/vue3": "^8.0.10", @@ -57,9 +56,13 @@ "vue-docgen-loader": "^1.5.1" }, "devDependencies": { + "@rsbuild/core": "0.7.9", "@types/node": "^18.0.0", "typescript": "^5.3.2" }, + "peerDependencies": { + "@rsbuild/core": ">= 0.7.0" + }, "peerDependenciesMeta": { "typescript": { "optional": true diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0f26019..9da0f61 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,8 +33,8 @@ importers: packages/builder-rsbuild: dependencies: '@rsbuild/plugin-type-check': - specifier: 0.6.15 - version: 0.6.15(@rsbuild/core@0.6.15)(esbuild@0.20.2)(typescript@5.4.5) + specifier: 0.7.9 + version: 0.7.9(@rsbuild/core@0.7.9)(esbuild@0.20.2)(typescript@5.4.5) '@storybook/addon-docs': specifier: ^8.0.10 version: 8.0.10 @@ -118,8 +118,8 @@ importers: version: 1.0.2 devDependencies: '@rsbuild/core': - specifier: 0.6.15 - version: 0.6.15 + specifier: 0.7.9 + version: 0.7.9 '@types/express': specifier: ^4.17.21 version: 4.17.21 @@ -147,9 +147,6 @@ importers: packages/react-rsbuild: dependencies: - '@rsbuild/core': - specifier: 0.6.15 - version: 0.6.15 '@storybook/docs-tools': specifier: ^8.0.10 version: 8.1.1(prettier@3.2.5) @@ -190,6 +187,9 @@ importers: specifier: ^4.2.0 version: 4.2.0 devDependencies: + '@rsbuild/core': + specifier: 0.7.9 + version: 0.7.9 '@storybook/types': specifier: ^8.0.10 version: 8.1.1 @@ -205,9 +205,6 @@ importers: packages/vue3-rsbuild: dependencies: - '@rsbuild/core': - specifier: 0.6.15 - version: 0.6.15 '@storybook/docs-tools': specifier: ^8.0.10 version: 8.1.1(prettier@3.2.5) @@ -224,6 +221,9 @@ importers: specifier: ^1.5.1 version: 1.5.1(@babel/preset-env@7.24.5)(vue-docgen-api@4.78.0)(webpack@5.91.0) devDependencies: + '@rsbuild/core': + specifier: 0.7.9 + version: 0.7.9 '@types/node': specifier: ^18.0.0 version: 18.19.33 @@ -244,11 +244,11 @@ importers: specifier: ^1.4.0 version: 1.4.0(react@18.3.1) '@rsbuild/core': - specifier: 0.6.15 - version: 0.6.15 + specifier: 0.7.9 + version: 0.7.9 '@rsbuild/plugin-react': - specifier: ^0.6.2 - version: 0.6.15(@rsbuild/core@0.6.15) + specifier: 0.7.9 + version: 0.7.9(@rsbuild/core@0.7.9) '@storybook/addon-essentials': specifier: 8.1.1 version: 8.1.1(@types/react-dom@18.3.0)(@types/react@18.3.2)(prettier@3.2.5)(react-dom@18.3.1)(react@18.3.1) @@ -296,11 +296,11 @@ importers: specifier: ^1.4.0 version: 1.4.0(react@18.3.1) '@rsbuild/core': - specifier: 0.6.15 - version: 0.6.15 + specifier: 0.7.9 + version: 0.7.9 '@rsbuild/plugin-vue': - specifier: 0.6.15 - version: 0.6.15(@rsbuild/core@0.6.15)(esbuild@0.20.2)(vue@3.4.27) + specifier: 0.7.9 + version: 0.7.9(@rsbuild/core@0.7.9)(esbuild@0.20.2)(vue@3.4.27) '@storybook/addon-essentials': specifier: 8.1.1 version: 8.1.1(@types/react-dom@18.3.0)(@types/react@18.3.2)(prettier@3.2.5)(react-dom@18.3.1)(react@18.3.1) @@ -2768,40 +2768,41 @@ packages: dev: true optional: true - /@rsbuild/core@0.6.15: - resolution: {integrity: sha512-wT9gyfRHyXJamR6fvlWzOpWGmI+2w+LMNIvAItY6AjCIT1zgfK0OOkChR4KGTTOWj68b/t0BnuBy1b2PV3DLyw==} + /@rsbuild/core@0.7.9: + resolution: {integrity: sha512-g29A68ZtrydLbWJgGlKUywyYi5ELnmuCM8CJWTxKa9itoIxAZG5h9NZ+P3VVBCaSfsY7DtFKMJ4D5cxvwJtVuw==} engines: {node: '>=16.0.0'} hasBin: true dependencies: - '@rsbuild/shared': 0.6.15(@swc/helpers@0.5.3) - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rsbuild/shared': 0.7.9(@swc/helpers@0.5.3) + '@rspack/core': 0.7.4(@swc/helpers@0.5.3) '@swc/helpers': 0.5.3 core-js: 3.36.1 - html-webpack-plugin: /html-rspack-plugin@5.7.2(@rspack/core@0.6.5) + html-webpack-plugin: /html-rspack-plugin@5.7.2(@rspack/core@0.7.4) postcss: 8.4.38 - /@rsbuild/plugin-react@0.6.15(@rsbuild/core@0.6.15): - resolution: {integrity: sha512-ZLFF5qYgQPKbJ5IL85XayadryxnHoaLUUjd2ewf/d/TRUh2NiWyZGaNzRytbmhaxI0WW8RUkZdy5aX3xyiZbTA==} + /@rsbuild/plugin-react@0.7.9(@rsbuild/core@0.7.9): + resolution: {integrity: sha512-mGwZP3urvMlwwjlopIMfig5ER0huIRCAq8ZujHeCE9xp8ZZOQt7rAkNUwEsOrcvuL/1tbpgoxkGWBioiis7g9A==} peerDependencies: - '@rsbuild/core': ^0.6.15 + '@rsbuild/core': ^0.7.9 dependencies: - '@rsbuild/core': 0.6.15 - '@rsbuild/shared': 0.6.15(@swc/helpers@0.5.3) - '@rspack/plugin-react-refresh': 0.6.5(react-refresh@0.14.2) + '@rsbuild/core': 0.7.9 + '@rsbuild/shared': 0.7.9(@swc/helpers@0.5.3) + '@rspack/plugin-react-refresh': 0.7.4(react-refresh@0.14.2) react-refresh: 0.14.2 transitivePeerDependencies: - '@swc/helpers' dev: true - /@rsbuild/plugin-type-check@0.6.15(@rsbuild/core@0.6.15)(esbuild@0.20.2)(typescript@5.4.5): - resolution: {integrity: sha512-n4Nxzb+k2WVAAYtI6NQF724pwZPlZ5hnT+cHHnSFQSm692CgOpWyjiBUbSL+ZNA5o+YPsooSYlI8Ji5O2PZgZA==} + /@rsbuild/plugin-type-check@0.7.9(@rsbuild/core@0.7.9)(esbuild@0.20.2)(typescript@5.4.5): + resolution: {integrity: sha512-5MqBmPIzaNfBytf4lw+WQE9rurwDWTkd2WzPprutidKaeW3p4nRnsC/w52M4ft7k9wyUzjlTSCyI/ERMus6ABQ==} peerDependencies: - '@rsbuild/core': ^0.6.15 + '@rsbuild/core': ^0.7.9 dependencies: - '@rsbuild/core': 0.6.15 - '@rsbuild/shared': 0.6.15(@swc/helpers@0.5.3) - fork-ts-checker-webpack-plugin: 9.0.2(typescript@5.4.5)(webpack@5.91.0) - webpack: 5.91.0(esbuild@0.20.2) + '@rsbuild/core': 0.7.9 + '@rsbuild/shared': 0.7.9(@swc/helpers@0.5.3) + fork-ts-checker-webpack-plugin: 9.0.2(typescript@5.4.5)(webpack@5.92.1) + json5: 2.2.3 + webpack: 5.92.1(esbuild@0.20.2) transitivePeerDependencies: - '@swc/core' - '@swc/helpers' @@ -2811,15 +2812,15 @@ packages: - webpack-cli dev: false - /@rsbuild/plugin-vue@0.6.15(@rsbuild/core@0.6.15)(esbuild@0.20.2)(vue@3.4.27): - resolution: {integrity: sha512-VBi1bZKbUsZTSHSdx8UBuHBYUdnX8qKsfOHtSeINVWMSAWZSaMaB2MPy6Vf9VVdJCjp5qCHwQNeaDT/q5dAvUw==} + /@rsbuild/plugin-vue@0.7.9(@rsbuild/core@0.7.9)(esbuild@0.20.2)(vue@3.4.27): + resolution: {integrity: sha512-cvoLn8GGb9pjsYTgPsSxKZkxpFrF/dwZVZKGa8TFipCO130NJI4Z/qhcktUveYnqUZU+Ckz4a7V/vWiDF/d97w==} peerDependencies: - '@rsbuild/core': ^0.6.15 + '@rsbuild/core': ^0.7.9 dependencies: - '@rsbuild/core': 0.6.15 - '@rsbuild/shared': 0.6.15(@swc/helpers@0.5.3) - vue-loader: 17.4.2(vue@3.4.27)(webpack@5.91.0) - webpack: 5.91.0(esbuild@0.20.2) + '@rsbuild/core': 0.7.9 + '@rsbuild/shared': 0.7.9(@swc/helpers@0.5.3) + vue-loader: 17.4.2(vue@3.4.27)(webpack@5.92.1) + webpack: 5.92.1(esbuild@0.20.2) transitivePeerDependencies: - '@swc/core' - '@swc/helpers' @@ -2830,95 +2831,96 @@ packages: - webpack-cli dev: true - /@rsbuild/shared@0.6.15(@swc/helpers@0.5.3): - resolution: {integrity: sha512-siBYUQL3qVINLDkIBaxx4caNb+zZ+Jb8WtN2RgRT5buLW+PU5fXUs5vGwjFz6B6wCxO/vLr78X/FjaCmxMv8HA==} + /@rsbuild/shared@0.7.9(@swc/helpers@0.5.3): + resolution: {integrity: sha512-g/xQoa1PJR5305EXqXW5v+gFaYjzlwFvOzv0hOrmF0n2tEO1gO5PD/dwdWw1F3I9I79OshCZk0ru0XLshg/waQ==} dependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) - caniuse-lite: 1.0.30001618 + '@rspack/core': 0.7.4(@swc/helpers@0.5.3) + caniuse-lite: 1.0.30001636 + html-webpack-plugin: /html-rspack-plugin@5.7.2(@rspack/core@0.7.4) postcss: 8.4.38 optionalDependencies: fsevents: 2.3.3 transitivePeerDependencies: - '@swc/helpers' - /@rspack/binding-darwin-arm64@0.6.5: - resolution: {integrity: sha512-5Zbs3buzF80MZoWnnpm/ZqQ2ZLKWjmmy94gDMeJhG39lKcpK2J2NyDXVis2ZSg7uUvKyJ662BEgIE1AnTWjnYg==} + /@rspack/binding-darwin-arm64@0.7.4: + resolution: {integrity: sha512-K78fUe9OhFTV61kHYCuahNkBXCFJMmqSGyIgNtLR9Psk82IVCHkvxY5565An1Quvo1UmgVh5R2YmylKE81mwiw==} cpu: [arm64] os: [darwin] requiresBuild: true optional: true - /@rspack/binding-darwin-x64@0.6.5: - resolution: {integrity: sha512-oA1R0OF8r7y8+oLynnZC9EgysLoOBuu1yYG90gHmrkdzRjjmYe4auNhuSLLqF+WOqXw/zGSujiUbnVMjLEWIBg==} + /@rspack/binding-darwin-x64@0.7.4: + resolution: {integrity: sha512-EQriu7oE+tZv25g5VJH6Ael74U42fmpb4zGs7wLmWyKfCtO6SegL3tJ8Jc6mMmp+vg949dVvkw7uB6TJjOqx2g==} cpu: [x64] os: [darwin] requiresBuild: true optional: true - /@rspack/binding-linux-arm64-gnu@0.6.5: - resolution: {integrity: sha512-xK2Ji9yCJSZE5HSRBS7R67HPahYd0WR16NefycrkmIEDR28B2T5CnvbqyNivnu7Coy1haHWisgfTV/NbjLd5fA==} + /@rspack/binding-linux-arm64-gnu@0.7.4: + resolution: {integrity: sha512-yhJLkU1zEXMyHNWhh8pBEaK6cRAjFzRK2hqejhhZ0K+lqC0Af9bKvZyXXGrMfmmHlsh1VJ9VVmi21qcXr/kdzg==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rspack/binding-linux-arm64-musl@0.6.5: - resolution: {integrity: sha512-nPDUf6TkzJWxqi6gQQz+Ypd2BPDiufh0gd0yFExIZyguE93amVbzJEfKeCQdvHZL5W/9XaYJoDKSOuCwMdLhiQ==} + /@rspack/binding-linux-arm64-musl@0.7.4: + resolution: {integrity: sha512-6GV3Ztl6Q1zdJmNo+dwHiJd2Y/IEH9qWOh4YHiyzYGbQQYpfhhLYwKexalWaAAhdMm6KKoeqzklgHImCINImEg==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rspack/binding-linux-x64-gnu@0.6.5: - resolution: {integrity: sha512-KT4GBPra7ge5oHSblfM74oRgW10MKdKhyJGEKFWqRezzul8i9SHElFzcE/w6qoOOLMgYPoVc/nybRqsJp9koZg==} + /@rspack/binding-linux-x64-gnu@0.7.4: + resolution: {integrity: sha512-KFdAEIZ7mPnT0y198xVOa8vIT9tgpEFVidCSIlxdk65UGC59g6UxEQq1EVAbcBi1Ou6Zza/UtxIlzk6Ev6KDkQ==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rspack/binding-linux-x64-musl@0.6.5: - resolution: {integrity: sha512-VnIzpFjzT4vkfUKPqyH4BiHJ6AMqtoeu7tychga2HpSudqCG8no4eIH2qRs9anGeuRkwb9x3uBC/1AIIiWSMsQ==} + /@rspack/binding-linux-x64-musl@0.7.4: + resolution: {integrity: sha512-qekcXkv12oWRztZHXGzNAI92/O/+abU35/nGDycZmMtr+Qt2XS5hE1T9oBQ54yecIzUVDGNcYwhIMWBX6E2dmQ==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rspack/binding-win32-arm64-msvc@0.6.5: - resolution: {integrity: sha512-V44hlcK7htG1pA/fHCc1XDGmItu7v8qQObssl/yGAn4+ZlvP6/pxPy8y5ZVwnR3NXTRzPezMvbnKGb4GxBphlw==} + /@rspack/binding-win32-arm64-msvc@0.7.4: + resolution: {integrity: sha512-D1BccimBVeA/k2ty/28ER/j3s/c0n0MtN4kpyjYwgRILVLRSr+rfbC75i8wYh8r8AXjhNWNG88LmrFN9e9i7Ug==} cpu: [arm64] os: [win32] requiresBuild: true optional: true - /@rspack/binding-win32-ia32-msvc@0.6.5: - resolution: {integrity: sha512-M4xrJDx5EcAtZ02R9Y4yJB5KVCUdQIbAF/1gDGrXZ5PQUujaNzsIdISUvNfxpfkqe0Shj6SKOTqWm8yte3ecrQ==} + /@rspack/binding-win32-ia32-msvc@0.7.4: + resolution: {integrity: sha512-5//TZH0Y4fRuTQ/ZmNOVaIfPIQXtgNAI78QxvF8Amygk4Uqklpo3ceHGP+yZfZgjh3mzjoUK+22fWbq/cUmW0w==} cpu: [ia32] os: [win32] requiresBuild: true optional: true - /@rspack/binding-win32-x64-msvc@0.6.5: - resolution: {integrity: sha512-aFcBygJsClx0FozVo7zMp9OUte7MlgyBpQGnS2MZgd0kSnuZTyaUcdRiWKehP5lrPPij/ZWNJbiz5O6VNzpg3w==} + /@rspack/binding-win32-x64-msvc@0.7.4: + resolution: {integrity: sha512-C3ZxIEYKvnjQbV19FfQE6CGO6vcGp2JcvSQCc6SHwU/KNxLDrI1pA7XUG5TKoGSsqVEDZN6H8fJxLUYPQBjJcg==} cpu: [x64] os: [win32] requiresBuild: true optional: true - /@rspack/binding@0.6.5: - resolution: {integrity: sha512-uHg6BYS9Uvs5Nxm0StpRX1eqx3I1SEPFhkCfh+HSbFS8ty11mKHjUZn1lYFxLBFypJ3DHtlTM3RZ4g7tmwohAQ==} + /@rspack/binding@0.7.4: + resolution: {integrity: sha512-H1rTtYxbxe40miV2gYLPwIxEn2yMY6+bq+fjfiRu61kTvllexPMBYgFpKqSAc5Qyyto9j9uCkR4MJEYj2R/SQQ==} optionalDependencies: - '@rspack/binding-darwin-arm64': 0.6.5 - '@rspack/binding-darwin-x64': 0.6.5 - '@rspack/binding-linux-arm64-gnu': 0.6.5 - '@rspack/binding-linux-arm64-musl': 0.6.5 - '@rspack/binding-linux-x64-gnu': 0.6.5 - '@rspack/binding-linux-x64-musl': 0.6.5 - '@rspack/binding-win32-arm64-msvc': 0.6.5 - '@rspack/binding-win32-ia32-msvc': 0.6.5 - '@rspack/binding-win32-x64-msvc': 0.6.5 - - /@rspack/core@0.6.5(@swc/helpers@0.5.3): - resolution: {integrity: sha512-jm0YKUZQCetccdufBfpkfSHE7BOlirrn0UmXv9C+69g8ikl9Jf4Jfr31meDWX5Z3vwZlpdryA7fUH2cblUXoBw==} + '@rspack/binding-darwin-arm64': 0.7.4 + '@rspack/binding-darwin-x64': 0.7.4 + '@rspack/binding-linux-arm64-gnu': 0.7.4 + '@rspack/binding-linux-arm64-musl': 0.7.4 + '@rspack/binding-linux-x64-gnu': 0.7.4 + '@rspack/binding-linux-x64-musl': 0.7.4 + '@rspack/binding-win32-arm64-msvc': 0.7.4 + '@rspack/binding-win32-ia32-msvc': 0.7.4 + '@rspack/binding-win32-x64-msvc': 0.7.4 + + /@rspack/core@0.7.4(@swc/helpers@0.5.3): + resolution: {integrity: sha512-HECQ0WL8iVS1Mwq2W2hfrStZZbtTPl/GjDdAZDMToPqWtSVGww99UDGIYTHW8G6kawQ3GY6wa86WTQNfXEpSCA==} engines: {node: '>=16.0.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -2927,15 +2929,14 @@ packages: optional: true dependencies: '@module-federation/runtime-tools': 0.1.6 - '@rspack/binding': 0.6.5 + '@rspack/binding': 0.7.4 '@swc/helpers': 0.5.3 caniuse-lite: 1.0.30001618 - enhanced-resolve: 5.12.0 tapable: 2.2.1 webpack-sources: 3.2.3 - /@rspack/plugin-react-refresh@0.6.5(react-refresh@0.14.2): - resolution: {integrity: sha512-H7V54qtdJvBQXSL209ep3cNoeDk8Ljid7+AGeJIXj5nu3ZIF4TYYDFeiyZtn7xCIgeyiYscuQZ0DKb/qXFYqog==} + /@rspack/plugin-react-refresh@0.7.4(react-refresh@0.14.2): + resolution: {integrity: sha512-9tAJdG/xZ6hUtD5K5OVpwAl2yV2HFnNl5fU5aOR5VJ5Pk0rCsYwbEZRbRnmSZwzMWIKDnowhoTi+4Ha3JV3aeQ==} peerDependencies: react-refresh: '>=0.10.0 <1.0.0' peerDependenciesMeta: @@ -3976,7 +3977,7 @@ packages: ts-dedent: 2.2.0 type-fest: 2.19.0 vue: 3.4.27(typescript@5.4.5) - vue-component-type-helpers: 2.0.19 + vue-component-type-helpers: 2.0.22 transitivePeerDependencies: - encoding - prettier @@ -4792,6 +4793,14 @@ packages: acorn: ^8 dependencies: acorn: 8.11.3 + dev: false + + /acorn-import-attributes@1.9.5(acorn@8.11.3): + resolution: {integrity: sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==} + peerDependencies: + acorn: ^8 + dependencies: + acorn: 8.11.3 /acorn-jsx@5.3.2(acorn@7.4.1): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -5417,6 +5426,9 @@ packages: /caniuse-lite@1.0.30001618: resolution: {integrity: sha512-p407+D1tIkDvsEAPS22lJxLQQaG8OTBEqo0KhzfABGk0TU4juBNDSfH0hyAp/HRyx+M8L17z/ltyhxh27FTfQg==} + /caniuse-lite@1.0.30001636: + resolution: {integrity: sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==} + /case-sensitive-paths-webpack-plugin@2.4.0: resolution: {integrity: sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==} engines: {node: '>=4'} @@ -6255,15 +6267,16 @@ packages: objectorarray: 1.0.5 dev: false - /enhanced-resolve@5.12.0: - resolution: {integrity: sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==} + /enhanced-resolve@5.16.1: + resolution: {integrity: sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==} engines: {node: '>=10.13.0'} dependencies: graceful-fs: 4.2.11 tapable: 2.2.1 + dev: false - /enhanced-resolve@5.16.1: - resolution: {integrity: sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==} + /enhanced-resolve@5.17.0: + resolution: {integrity: sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA==} engines: {node: '>=10.13.0'} dependencies: graceful-fs: 4.2.11 @@ -6927,7 +6940,7 @@ packages: dev: false optional: true - /fork-ts-checker-webpack-plugin@9.0.2(typescript@5.4.5)(webpack@5.91.0): + /fork-ts-checker-webpack-plugin@9.0.2(typescript@5.4.5)(webpack@5.92.1): resolution: {integrity: sha512-Uochze2R8peoN1XqlSi/rGUkDQpRogtLFocP9+PGu68zk1BDAKXfdeCdyVZpgTk8V8WFVQXdEz426VKjXLO1Gg==} engines: {node: '>=12.13.0', yarn: '>=1.0.0'} peerDependencies: @@ -6947,7 +6960,7 @@ packages: semver: 7.6.2 tapable: 2.2.1 typescript: 5.4.5 - webpack: 5.91.0(esbuild@0.20.2) + webpack: 5.92.1(esbuild@0.20.2) dev: false /form-data@2.3.3: @@ -7370,7 +7383,7 @@ packages: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} dev: true - /html-rspack-plugin@5.7.2(@rspack/core@0.6.5): + /html-rspack-plugin@5.7.2(@rspack/core@0.7.4): resolution: {integrity: sha512-uVXGYq19bcsX7Q/53VqXQjCKXw0eUMHlFGDLTaqzgj/ckverfhZQvXyA6ecFBaF9XUH16jfCTCyALYi0lJcagg==} engines: {node: '>=10.13.0'} peerDependencies: @@ -7379,7 +7392,7 @@ packages: '@rspack/core': optional: true dependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.7.4(@swc/helpers@0.5.3) /html-tags@3.3.1: resolution: {integrity: sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==} @@ -10794,6 +10807,31 @@ packages: serialize-javascript: 6.0.2 terser: 5.31.0 webpack: 5.91.0(esbuild@0.20.2) + dev: false + + /terser-webpack-plugin@5.3.10(esbuild@0.20.2)(webpack@5.92.1): + resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} + engines: {node: '>= 10.13.0'} + peerDependencies: + '@swc/core': '*' + esbuild: '*' + uglify-js: '*' + webpack: ^5.1.0 + peerDependenciesMeta: + '@swc/core': + optional: true + esbuild: + optional: true + uglify-js: + optional: true + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + esbuild: 0.20.2 + jest-worker: 27.5.1 + schema-utils: 3.3.0 + serialize-javascript: 6.0.2 + terser: 5.31.0 + webpack: 5.92.1(esbuild@0.20.2) /terser@5.31.0: resolution: {integrity: sha512-Q1JFAoUKE5IMfI4Z/lkE/E6+SwgzO+x4tq4v1AyBLRj8VSYvRO6A/rQrPg1yud4g0En9EKI1TvFRF2tQFcoUkg==} @@ -11632,8 +11670,8 @@ packages: engines: {node: '>=0.10.0'} dev: false - /vue-component-type-helpers@2.0.19: - resolution: {integrity: sha512-cN3f1aTxxKo4lzNeQAkVopswuImUrb5Iurll9Gaw5cqpnbTAxtEMM1mgi6ou4X79OCyqYv1U1mzBHJkzmiK82w==} + /vue-component-type-helpers@2.0.22: + resolution: {integrity: sha512-gPr2Ba7efUwy/Vfbuf735bHSVdN4ycoZUCHfypkI33M9DUH+ieRblLLVM2eImccFYaWNWwEzURx02EgoXDBmaQ==} /vue-docgen-api@4.78.0(vue@3.4.27): resolution: {integrity: sha512-RsZf+qzTttCCAN9v7AKmBykc2QWmO8csVk1c2aXeOktomSOu0NA7sgK4ObuRB5lpmtOvTnwuxssyYmxXxABr+A==} @@ -11681,7 +11719,7 @@ packages: vue: 3.4.27(typescript@5.4.5) dev: false - /vue-loader@17.4.2(vue@3.4.27)(webpack@5.91.0): + /vue-loader@17.4.2(vue@3.4.27)(webpack@5.92.1): resolution: {integrity: sha512-yTKOA4R/VN4jqjw4y5HrynFL8AK0Z3/Jt7eOJXEitsm0GMRHDBjCfCiuTiLP7OESvsZYo2pATCWhDqxC5ZrM6w==} peerDependencies: '@vue/compiler-sfc': '*' @@ -11697,7 +11735,7 @@ packages: hash-sum: 2.0.0 vue: 3.4.27(typescript@5.4.5) watchpack: 2.4.1 - webpack: 5.91.0(esbuild@0.20.2) + webpack: 5.92.1(esbuild@0.20.2) dev: true /vue@3.4.27(typescript@5.4.5): @@ -11781,6 +11819,46 @@ packages: - '@swc/core' - esbuild - uglify-js + dev: false + + /webpack@5.92.1(esbuild@0.20.2): + resolution: {integrity: sha512-JECQ7IwJb+7fgUFBlrJzbyu3GEuNBcdqr1LD7IbSzwkSmIevTm8PF+wej3Oxuz/JFBUZ6O1o43zsPkwm1C4TmA==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + webpack-cli: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + dependencies: + '@types/eslint-scope': 3.7.7 + '@types/estree': 1.0.5 + '@webassemblyjs/ast': 1.12.1 + '@webassemblyjs/wasm-edit': 1.12.1 + '@webassemblyjs/wasm-parser': 1.12.1 + acorn: 8.11.3 + acorn-import-attributes: 1.9.5(acorn@8.11.3) + browserslist: 4.23.0 + chrome-trace-event: 1.0.3 + enhanced-resolve: 5.17.0 + es-module-lexer: 1.5.2 + eslint-scope: 5.1.1 + events: 3.3.0 + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.11 + json-parse-even-better-errors: 2.3.1 + loader-runner: 4.3.0 + mime-types: 2.1.35 + neo-async: 2.6.2 + schema-utils: 3.3.0 + tapable: 2.2.1 + terser-webpack-plugin: 5.3.10(esbuild@0.20.2)(webpack@5.92.1) + watchpack: 2.4.1 + webpack-sources: 3.2.3 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js /whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} diff --git a/sandboxes/react-rsbuild/package.json b/sandboxes/react-rsbuild/package.json index 69d7fa8..153daa3 100644 --- a/sandboxes/react-rsbuild/package.json +++ b/sandboxes/react-rsbuild/package.json @@ -18,8 +18,8 @@ }, "devDependencies": { "@chromatic-com/storybook": "^1.4.0", - "@rsbuild/core": "0.6.15", - "@rsbuild/plugin-react": "^0.6.2", + "@rsbuild/core": "0.7.9", + "@rsbuild/plugin-react": "0.7.9", "@storybook/addon-essentials": "8.1.1", "@storybook/addon-interactions": "8.1.1", "@storybook/addon-links": "8.1.1", diff --git a/sandboxes/vue3-rsbuild/package.json b/sandboxes/vue3-rsbuild/package.json index b5d0bc7..3f1ac0c 100644 --- a/sandboxes/vue3-rsbuild/package.json +++ b/sandboxes/vue3-rsbuild/package.json @@ -14,8 +14,8 @@ }, "devDependencies": { "@chromatic-com/storybook": "^1.4.0", - "@rsbuild/core": "0.6.15", - "@rsbuild/plugin-vue": "0.6.15", + "@rsbuild/core": "0.7.9", + "@rsbuild/plugin-vue": "0.7.9", "@storybook/addon-essentials": "8.1.1", "@storybook/addon-interactions": "8.1.1", "@storybook/addon-links": "8.1.1",