diff --git a/packages/bundles/package.json b/packages/bundles/package.json index b405d06620..aaeb9b7313 100644 --- a/packages/bundles/package.json +++ b/packages/bundles/package.json @@ -32,7 +32,10 @@ "sass": "1.50.0", "react-refresh": "0.14.0", "core-js-pure": "^3.8.1", - "error-stack-parser": "^2.0.6" + "error-stack-parser": "^2.0.6", + "@rspack/core": "0.2.12", + "@rspack/dev-server": "0.2.12", + "@ice/css-modules-hash": "0.0.6" }, "devDependencies": { "@types/less": "^3.0.3", diff --git a/packages/bundles/src/dev-server.ts b/packages/bundles/src/dev-server.ts new file mode 100644 index 0000000000..794a2cc45a --- /dev/null +++ b/packages/bundles/src/dev-server.ts @@ -0,0 +1 @@ +export * from '@rspack/dev-server'; diff --git a/packages/bundles/src/index.ts b/packages/bundles/src/index.ts index c37218faaa..4cc767dd61 100644 --- a/packages/bundles/src/index.ts +++ b/packages/bundles/src/index.ts @@ -6,6 +6,7 @@ import sass from 'sass'; import swc from '@swc/core'; import esbuild from 'esbuild'; import * as caniuseLite from 'caniuse-lite'; +import { getCssModulesLocalIdent } from '@ice/css-modules-hash'; const require = createRequire(import.meta.url); const swcPluginRemoveExport = require.resolve('@ice/swc-plugin-remove-export'); @@ -26,6 +27,7 @@ export { esbuild, caniuseLite, + getCssModulesLocalIdent, }; export type { ProcessOptions } from 'postcss'; diff --git a/packages/bundles/src/rspack.ts b/packages/bundles/src/rspack.ts new file mode 100644 index 0000000000..afd429cbbc --- /dev/null +++ b/packages/bundles/src/rspack.ts @@ -0,0 +1 @@ +export * from '@rspack/core'; diff --git a/packages/ice/package.json b/packages/ice/package.json index 75a6b6e006..3d297e75cf 100644 --- a/packages/ice/package.json +++ b/packages/ice/package.json @@ -38,9 +38,6 @@ "dependencies": { "@ice/bundles": "0.1.12", "@ice/route-manifest": "1.2.0", - "@rspack/core": "0.2.10", - "@rspack/dev-server": "0.2.10", - "@ice/css-modules-hash": "0.0.6", "@ice/runtime": "^1.2.7", "@ice/webpack-config": "1.0.19", "@swc/helpers": "0.5.1", @@ -88,7 +85,9 @@ "sass": "^1.50.0", "unplugin": "^0.9.0", "webpack": "^5.86.0", - "webpack-dev-server": "^4.7.4" + "webpack-dev-server": "^4.7.4", + "@rspack/core": "0.2.12", + "@rspack/dev-server": "0.2.12" }, "peerDependencies": { "react": ">=18.0.0", diff --git a/packages/ice/src/bundler/rspack/index.ts b/packages/ice/src/bundler/rspack/index.ts index 1fc5ba9417..f8323071dd 100644 --- a/packages/ice/src/bundler/rspack/index.ts +++ b/packages/ice/src/bundler/rspack/index.ts @@ -28,7 +28,7 @@ async function bundler( let compiler: MultiCompiler; let devServer: RspackDevServer; try { - const { rspack } = await import('@rspack/core'); + const { rspack } = await import('@ice/bundles/esm/rspack.js'); compiler = rspack(rspackConfigs); } catch (error) { logger.error('Webpack compile error.'); diff --git a/packages/ice/src/bundler/rspack/start.ts b/packages/ice/src/bundler/rspack/start.ts index 943983b390..2e5fad3e0a 100644 --- a/packages/ice/src/bundler/rspack/start.ts +++ b/packages/ice/src/bundler/rspack/start.ts @@ -46,7 +46,7 @@ const start = async ({ devServerConfig, }); - const { RspackDevServer } = await import('@rspack/dev-server'); + const { RspackDevServer } = await import('@ice/bundles/esm/dev-server.js'); const devServer = new RspackDevServer(devServerConfig, compiler); compiler.hooks.done.tap('done', async stats => { diff --git a/packages/ice/src/utils/getCSSModuleIdent.ts b/packages/ice/src/utils/getCSSModuleIdent.ts index 6753a68b95..1f9b0cffe6 100644 --- a/packages/ice/src/utils/getCSSModuleIdent.ts +++ b/packages/ice/src/utils/getCSSModuleIdent.ts @@ -1,6 +1,6 @@ import * as path from 'path'; import { getCSSModuleLocalIdent } from '@ice/webpack-config'; -import { getCssModulesLocalIdent as getIdentByRust } from '@ice/css-modules-hash'; +import { getCssModulesLocalIdent as getIdentByRust } from '@ice/bundles'; import { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_LOCAL_IDENT_NAME_DEV } from '../constant.js'; import escapeLocalIdent from '../utils/escapeLocalIdent.js'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ea1fea95a9..ce3e96e4b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -898,10 +898,13 @@ importers: packages/bundles: specifiers: + '@ice/css-modules-hash': 0.0.6 '@ice/swc-plugin-keep-export': 0.1.4-2 '@ice/swc-plugin-node-transform': 0.1.0-8 '@ice/swc-plugin-remove-export': 0.1.2 '@pmmmwh/react-refresh-webpack-plugin': 0.5.10 + '@rspack/core': 0.2.12 + '@rspack/dev-server': 0.2.12 '@swc/core': 1.3.19 '@types/less': ^3.0.3 '@types/lodash': ^4.14.181 @@ -977,9 +980,12 @@ importers: webpack-dev-server: 4.15.0 ws: ^8.4.2 dependencies: + '@ice/css-modules-hash': 0.0.6 '@ice/swc-plugin-keep-export': 0.1.4-2 '@ice/swc-plugin-node-transform': 0.1.0-8 '@ice/swc-plugin-remove-export': 0.1.2 + '@rspack/core': 0.2.12_4bf67y7mpw3bgtltnng4kry2iu + '@rspack/dev-server': 0.2.12_y45tiphmzoqztm66vswhbqsbxu '@swc/core': 1.3.19 ansi-html-community: 0.0.8 caniuse-lite: 1.0.30001462 @@ -1090,12 +1096,11 @@ importers: packages/ice: specifiers: '@ice/bundles': 0.1.12 - '@ice/css-modules-hash': 0.0.6 '@ice/route-manifest': 1.2.0 '@ice/runtime': ^1.2.7 '@ice/webpack-config': 1.0.19 - '@rspack/core': 0.2.10 - '@rspack/dev-server': 0.2.10 + '@rspack/core': 0.2.12 + '@rspack/dev-server': 0.2.12 '@swc/helpers': 0.5.1 '@types/babel__generator': ^7.6.4 '@types/babel__traverse': ^7.17.1 @@ -1142,12 +1147,9 @@ importers: yargs-parser: ^21.1.1 dependencies: '@ice/bundles': link:../bundles - '@ice/css-modules-hash': 0.0.6 '@ice/route-manifest': link:../route-manifest '@ice/runtime': link:../runtime '@ice/webpack-config': link:../webpack-config - '@rspack/core': 0.2.10_qdqx3npcqtb2xiqbiduy5olvie - '@rspack/dev-server': 0.2.10_fofh2yuv7kqysoham46xhh7hzq '@swc/helpers': 0.5.1 '@types/express': 4.17.17 address: 1.2.2 @@ -1176,6 +1178,8 @@ importers: temp: 0.9.4 yargs-parser: 21.1.1 devDependencies: + '@rspack/core': 0.2.12_qdqx3npcqtb2xiqbiduy5olvie + '@rspack/dev-server': 0.2.12_5tsa6lqen55ug6p3bebmrpjbzy '@types/babel__generator': 7.6.4 '@types/babel__traverse': 7.18.3 '@types/cross-spawn': 6.0.2 @@ -1477,7 +1481,7 @@ importers: consola: 2.15.3 css: 2.2.4 lodash-es: 4.17.21 - rax-compat: link:../rax-compat + rax-compat: 0.2.6 style-unit: 3.0.5 stylesheet-loader: 0.9.1 devDependencies: @@ -5408,6 +5412,13 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true + /@ice/appear/0.2.0: + resolution: {integrity: sha512-2PjCeOvrHiSuDE5C1ybMh4oj7pRzOk05bH+W1ICnUAH1ZxpPkdp1Wn3vJLSj74PGJro9fwIG1r9zDLY1nW6kOw==} + peerDependencies: + react: ^18 + react-dom: ^18 + dev: false + /@ice/css-modules-hash-darwin-arm64/0.0.6: resolution: {integrity: sha512-5QWZl3+biY5U/kRhymH+6X/kAk3Imvkqu9QpV+LTDxhoXEkdhzZd2sCO5ZNfrsODFuHy78iKzh6gEweADPwYkQ==} engines: {node: '>= 10'} @@ -6380,9 +6391,8 @@ packages: react-refresh: 0.14.0 schema-utils: 3.1.1 source-map: 0.7.4 - webpack: 5.76.0_esbuild@0.17.16 + webpack: 5.76.0_w34or7orauknzckzea4nxxqrru webpack-dev-server: 4.13.1_webpack@5.76.0 - dev: false /@pmmmwh/react-refresh-webpack-plugin/0.5.10_pwyhrrf3f3zqdpdfqfqifp24z4: resolution: {integrity: sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==} @@ -6422,7 +6432,7 @@ packages: source-map: 0.7.4 webpack: 5.86.0_esbuild@0.17.16 webpack-dev-server: 4.11.1_webpack@5.86.0 - dev: false + dev: true /@pmmmwh/react-refresh-webpack-plugin/0.5.10_xl75jf2rcivcbfvir2zwdrg55y: resolution: {integrity: sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==} @@ -6462,7 +6472,6 @@ packages: source-map: 0.7.4 webpack: 5.86.0_w34or7orauknzckzea4nxxqrru webpack-dev-server: 4.15.0_webpack@5.86.0 - dev: true /@polka/url/1.0.0-next.21: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} @@ -6754,97 +6763,87 @@ packages: rollup: 2.79.1 dev: true - /@rspack/binding-darwin-arm64/0.2.10: - resolution: {integrity: sha512-8EnCjBgYSOA7F2PsqePPWtxqP8oGTwgAC/jd/M3EFmN7OZW8kZyXX4RHLZYTqrGJbHq+o8e5iHa1km12LLQiAw==} + /@rspack/binding-darwin-arm64/0.2.12: + resolution: {integrity: sha512-TTiizzXNYGILAwwUhf49AqeNRJ7NXnzObhmqaDJ76lwDph+yLf8HYhNWAzrhYljaWQGYjwTYUdXVrGflYb2pHA==} cpu: [arm64] os: [darwin] requiresBuild: true - dev: false optional: true - /@rspack/binding-darwin-x64/0.2.10: - resolution: {integrity: sha512-+UV/SiWFSWyLiYTtXvtG7Dcdf+Z4KG0Fc6EdPzUu+9c5exjoytY8d8r0qifIkpQQa3pJPpcKKoqIC6GEWgcetw==} + /@rspack/binding-darwin-x64/0.2.12: + resolution: {integrity: sha512-zq32runVEEXoJQjo5xfKxoDsxPVQu3KHplZR3Yxp5fxnx7b9eiM5BPf1FQ6ml7b6FC4ZXyQNYwtoDsLSTYRnfg==} cpu: [x64] os: [darwin] requiresBuild: true - dev: false optional: true - /@rspack/binding-linux-arm64-gnu/0.2.10: - resolution: {integrity: sha512-SbCJN4/o314Ix0yC+Kk8qO3bEloASDJf/r0dAM1iOHrBSO5Mpl+AVmL8OD6SYjKfTezeq2gQFdmO5Et2Rwh3LQ==} + /@rspack/binding-linux-arm64-gnu/0.2.12: + resolution: {integrity: sha512-C5LR+/na47/ZlQXvrQP96GfzRnh34fa4cT3wD7C+BOwPrPrCdhf8Z3GNzv2J6Rs/ACBZjpD2DE+ARrWsBAv33w==} cpu: [arm64] os: [linux] requiresBuild: true - dev: false optional: true - /@rspack/binding-linux-arm64-musl/0.2.10: - resolution: {integrity: sha512-aoUgIZBGlUUtmgvLzo0CYHs8Ml/z35WL6IUS6DhrrIwHoWUPIWPfO1BjPNQGr3o5rgDRYhWxND7lTO/MCRZ+Gw==} + /@rspack/binding-linux-arm64-musl/0.2.12: + resolution: {integrity: sha512-UbLGMUOSPaivO6TbGVt1JKeOXTfj1DFjIBTy2CKxIF5+B6xvg+ns9BhZobtZmjDlJ9GvkkHFoawFyl6UG+XLpg==} cpu: [arm64] os: [linux] requiresBuild: true - dev: false optional: true - /@rspack/binding-linux-x64-gnu/0.2.10: - resolution: {integrity: sha512-1mrUlhdyq3EJaIzwExZQRt3jDySzmHl96EdTZ+xNFiI4Oc9I4W6ZlwePmFMmadp8xVI4vj2hObTROXRD0BCUvQ==} + /@rspack/binding-linux-x64-gnu/0.2.12: + resolution: {integrity: sha512-I5W6WaD9llJjFR+Z1aJj0Ml/cheyHDH4eyTfEZXiOCEeTFJlA5NhMn97fDWoFKVYh5wq6uwCrxnaOSehYlsbYw==} cpu: [x64] os: [linux] requiresBuild: true - dev: false optional: true - /@rspack/binding-linux-x64-musl/0.2.10: - resolution: {integrity: sha512-Xq/CRLPP3FQsLuC3omOuF9in0OlqIqJkoKGGhf1fS+qOr8pE51cKaza14gE9ZSZ/07Nvg/XU6rFbynI2qSm4Ww==} + /@rspack/binding-linux-x64-musl/0.2.12: + resolution: {integrity: sha512-JuJKw502u/1FroIfR5iwoZ9pfx/iPpFEQmA6TseIKnu8eHM1jPKlPWAY4geBvzgiz04EdTs4uJ8o1ItoQLsddg==} cpu: [x64] os: [linux] requiresBuild: true - dev: false optional: true - /@rspack/binding-win32-arm64-msvc/0.2.10: - resolution: {integrity: sha512-Kd9FVHuT3QvVj5z9IUf3KlfuA0PrGRx3Llh0VFlGBMWQKtSDCH9Olfty4ZcEpgurVWQolMGbFge8xRUJJRNQtA==} + /@rspack/binding-win32-arm64-msvc/0.2.12: + resolution: {integrity: sha512-f5npfQkXP8uHDSwiT1cXAhrdPwr7hrCz3EVKfwsB5Y1ny17YAH4ztm5Pk7oBB8H8SjQfn2Af8C3YEz1SUyk5/g==} cpu: [arm64] os: [win32] requiresBuild: true - dev: false optional: true - /@rspack/binding-win32-ia32-msvc/0.2.10: - resolution: {integrity: sha512-6nmUrJl2YowGIISF89IUNcqUkFJ+I9XMqc9Ot9NWJH08MrpitPL+mZ8QsJhq9TKZDUrObd3q8mqTUIFdz0dq6w==} + /@rspack/binding-win32-ia32-msvc/0.2.12: + resolution: {integrity: sha512-pw8a1gCK+TK8suZdEZwXzdEzC+ZGtYsv75BhwHNRrcKUbmRjn7FTtvSO0beZlRMNcfc3A2SD1ZmozZM1czbang==} cpu: [ia32] os: [win32] requiresBuild: true - dev: false optional: true - /@rspack/binding-win32-x64-msvc/0.2.10: - resolution: {integrity: sha512-yd7bZA4b2z8gCeEyWh7Vg6vub9XrUXs3mny0zFE/16yWRWQowkmz6esCCdg97jPXU2azfOxdQj39pSNMkRbr6A==} + /@rspack/binding-win32-x64-msvc/0.2.12: + resolution: {integrity: sha512-6UGQKJ0CG5g/v7vSeDr5wI1AuAaWR4P6xoRcyWMeeW5Vw3sOxqK/MfEOtwVseX47IcF+NhrmHhVX7MN4EiO0ZA==} cpu: [x64] os: [win32] requiresBuild: true - dev: false optional: true - /@rspack/binding/0.2.10: - resolution: {integrity: sha512-iHndN8t5FmzPgvDo+ttSDYIvB5XLp3LSn18UZ8H2HaFA7AqrwSrTrcMFDB6YFsy0CFZ1WT1RY7WnV7gs6UJzRw==} + /@rspack/binding/0.2.12: + resolution: {integrity: sha512-Pi/Zi6NgOXiHPA08lk1yFTJwlTozLx6cLI87astcMQz56LSOQb8wBV9uiRvWufnWWijh7+jznNxpv7psWqXRoA==} optionalDependencies: - '@rspack/binding-darwin-arm64': 0.2.10 - '@rspack/binding-darwin-x64': 0.2.10 - '@rspack/binding-linux-arm64-gnu': 0.2.10 - '@rspack/binding-linux-arm64-musl': 0.2.10 - '@rspack/binding-linux-x64-gnu': 0.2.10 - '@rspack/binding-linux-x64-musl': 0.2.10 - '@rspack/binding-win32-arm64-msvc': 0.2.10 - '@rspack/binding-win32-ia32-msvc': 0.2.10 - '@rspack/binding-win32-x64-msvc': 0.2.10 - dev: false - - /@rspack/core/0.2.10_qdqx3npcqtb2xiqbiduy5olvie: - resolution: {integrity: sha512-vX05biues8ZTN7EfMSR8WwSOrlNSIyYoBIvOKtcF4MFzmlCqDlTERJRIVu58ADKODpJvPRCX6eICmeh4dCog0g==} - dependencies: - '@rspack/binding': 0.2.10 - '@rspack/dev-client': 0.2.10_pwyhrrf3f3zqdpdfqfqifp24z4 + '@rspack/binding-darwin-arm64': 0.2.12 + '@rspack/binding-darwin-x64': 0.2.12 + '@rspack/binding-linux-arm64-gnu': 0.2.12 + '@rspack/binding-linux-arm64-musl': 0.2.12 + '@rspack/binding-linux-x64-gnu': 0.2.12 + '@rspack/binding-linux-x64-musl': 0.2.12 + '@rspack/binding-win32-arm64-msvc': 0.2.12 + '@rspack/binding-win32-ia32-msvc': 0.2.12 + '@rspack/binding-win32-x64-msvc': 0.2.12 + + /@rspack/core/0.2.12_4bf67y7mpw3bgtltnng4kry2iu: + resolution: {integrity: sha512-SekS+6bdTSx16nWQD7rGdnLK6fr0PewV2KKDt6w3jwHkJxDQygdUqL+st3c/JBGm/dpIVVpWkAcoLpK3EjFUcA==} + dependencies: + '@rspack/binding': 0.2.12 + '@rspack/dev-client': 0.2.12_xl75jf2rcivcbfvir2zwdrg55y '@swc/helpers': 0.5.1 browserslist: 4.21.5 compare-versions: 6.0.0-rc.1 @@ -6869,8 +6868,37 @@ packages: - webpack-plugin-serve dev: false - /@rspack/dev-client/0.2.10_4p7fys4vpjth4wnvvzaxfza3hm: - resolution: {integrity: sha512-Yyl7Ytu4/VW4pO8i1FydZdzXTxAN+fztev8bGLRCKc++aOFm6F0fSGAqf5Nmi5qj4VY/SaBVUB7ii4NB7CiObg==} + /@rspack/core/0.2.12_qdqx3npcqtb2xiqbiduy5olvie: + resolution: {integrity: sha512-SekS+6bdTSx16nWQD7rGdnLK6fr0PewV2KKDt6w3jwHkJxDQygdUqL+st3c/JBGm/dpIVVpWkAcoLpK3EjFUcA==} + dependencies: + '@rspack/binding': 0.2.12 + '@rspack/dev-client': 0.2.12_pwyhrrf3f3zqdpdfqfqifp24z4 + '@swc/helpers': 0.5.1 + browserslist: 4.21.5 + compare-versions: 6.0.0-rc.1 + enhanced-resolve: 5.12.0 + graceful-fs: 4.2.10 + neo-async: 2.6.2 + react-refresh: 0.14.0 + schema-utils: 4.0.0 + tapable: 2.2.1 + util: 0.12.5 + watchpack: 2.4.0 + webpack-sources: 3.2.3 + zod: 3.21.4 + zod-validation-error: 1.2.0_zod@3.21.4 + transitivePeerDependencies: + - '@types/webpack' + - sockjs-client + - type-fest + - webpack + - webpack-dev-server + - webpack-hot-middleware + - webpack-plugin-serve + dev: true + + /@rspack/dev-client/0.2.12_4p7fys4vpjth4wnvvzaxfza3hm: + resolution: {integrity: sha512-EeovUu3iItItbSKcZH3eNoGvvFiqUfFEHg22jJQTGeV3I5sZWvgfQA7+JQq44HI50Rq1EI8R9rB5X1rXwrhv/w==} peerDependencies: react-refresh: '>=0.10.0 <1.0.0' peerDependenciesMeta: @@ -6887,10 +6915,9 @@ packages: - webpack-dev-server - webpack-hot-middleware - webpack-plugin-serve - dev: false - /@rspack/dev-client/0.2.10_pwyhrrf3f3zqdpdfqfqifp24z4: - resolution: {integrity: sha512-Yyl7Ytu4/VW4pO8i1FydZdzXTxAN+fztev8bGLRCKc++aOFm6F0fSGAqf5Nmi5qj4VY/SaBVUB7ii4NB7CiObg==} + /@rspack/dev-client/0.2.12_pwyhrrf3f3zqdpdfqfqifp24z4: + resolution: {integrity: sha512-EeovUu3iItItbSKcZH3eNoGvvFiqUfFEHg22jJQTGeV3I5sZWvgfQA7+JQq44HI50Rq1EI8R9rB5X1rXwrhv/w==} peerDependencies: react-refresh: '>=0.10.0 <1.0.0' peerDependenciesMeta: @@ -6907,15 +6934,35 @@ packages: - webpack-dev-server - webpack-hot-middleware - webpack-plugin-serve + dev: true + + /@rspack/dev-client/0.2.12_xl75jf2rcivcbfvir2zwdrg55y: + resolution: {integrity: sha512-EeovUu3iItItbSKcZH3eNoGvvFiqUfFEHg22jJQTGeV3I5sZWvgfQA7+JQq44HI50Rq1EI8R9rB5X1rXwrhv/w==} + peerDependencies: + react-refresh: '>=0.10.0 <1.0.0' + peerDependenciesMeta: + react-refresh: + optional: true + dependencies: + '@pmmmwh/react-refresh-webpack-plugin': 0.5.10_xl75jf2rcivcbfvir2zwdrg55y + react-refresh: 0.14.0 + transitivePeerDependencies: + - '@types/webpack' + - sockjs-client + - type-fest + - webpack + - webpack-dev-server + - webpack-hot-middleware + - webpack-plugin-serve dev: false - /@rspack/dev-server/0.2.10_fofh2yuv7kqysoham46xhh7hzq: - resolution: {integrity: sha512-a6b7DuuCSVo7MeHnXe9UQkqQBh+2QcvP5VidijgkTf32bQyZ9eeiQpqWV6qJpiP8lChW9xzi9ZObLUzE3KvTwQ==} + /@rspack/dev-server/0.2.12_5tsa6lqen55ug6p3bebmrpjbzy: + resolution: {integrity: sha512-z69w6lvRR1ZVJmdSWzs/bc9w29ZhSU1bz1GPDSdHPJ05fesvEtMrEYwg8YOO69lAKHGVQHoevHILO32cwMtKQQ==} peerDependencies: '@rspack/core': '*' dependencies: - '@rspack/core': 0.2.10_qdqx3npcqtb2xiqbiduy5olvie - '@rspack/dev-client': 0.2.10_4p7fys4vpjth4wnvvzaxfza3hm + '@rspack/core': 0.2.12_qdqx3npcqtb2xiqbiduy5olvie + '@rspack/dev-client': 0.2.12_4p7fys4vpjth4wnvvzaxfza3hm chokidar: 3.5.3 connect-history-api-fallback: 2.0.0 express: 4.18.1 @@ -6941,6 +6988,40 @@ packages: - webpack-cli - webpack-hot-middleware - webpack-plugin-serve + dev: true + + /@rspack/dev-server/0.2.12_y45tiphmzoqztm66vswhbqsbxu: + resolution: {integrity: sha512-z69w6lvRR1ZVJmdSWzs/bc9w29ZhSU1bz1GPDSdHPJ05fesvEtMrEYwg8YOO69lAKHGVQHoevHILO32cwMtKQQ==} + peerDependencies: + '@rspack/core': '*' + dependencies: + '@rspack/core': 0.2.12_4bf67y7mpw3bgtltnng4kry2iu + '@rspack/dev-client': 0.2.12_4p7fys4vpjth4wnvvzaxfza3hm + chokidar: 3.5.3 + connect-history-api-fallback: 2.0.0 + express: 4.18.1 + http-proxy-middleware: 2.0.6 + mime-types: 2.1.35 + webpack: 5.76.0_w34or7orauknzckzea4nxxqrru + webpack-dev-middleware: 6.0.2_webpack@5.76.0 + webpack-dev-server: 4.13.1_webpack@5.76.0 + ws: 8.8.1 + transitivePeerDependencies: + - '@swc/core' + - '@types/express' + - '@types/webpack' + - bufferutil + - debug + - esbuild + - react-refresh + - sockjs-client + - supports-color + - type-fest + - uglify-js + - utf-8-validate + - webpack-cli + - webpack-hot-middleware + - webpack-plugin-serve dev: false /@sideway/address/4.1.4: @@ -7459,7 +7540,6 @@ packages: resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==} dependencies: tslib: 2.5.0 - dev: false /@szmarczak/http-timer/1.1.2: resolution: {integrity: sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==} @@ -7660,7 +7740,6 @@ packages: /@types/estree/0.0.51: resolution: {integrity: sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==} - dev: false /@types/estree/1.0.0: resolution: {integrity: sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==} @@ -8249,7 +8328,6 @@ packages: dependencies: '@webassemblyjs/helper-numbers': 1.11.1 '@webassemblyjs/helper-wasm-bytecode': 1.11.1 - dev: false /@webassemblyjs/ast/1.11.5: resolution: {integrity: sha512-LHY/GSAZZRpsNQH+/oHqhRQ5FT7eoULcBqgfyTB5nQHogFnK3/7QoN7dLnwSE/JkUAF0SrRuclT7ODqMFtWxxQ==} @@ -8259,21 +8337,18 @@ packages: /@webassemblyjs/floating-point-hex-parser/1.11.1: resolution: {integrity: sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==} - dev: false /@webassemblyjs/floating-point-hex-parser/1.11.5: resolution: {integrity: sha512-1j1zTIC5EZOtCplMBG/IEwLtUojtwFVwdyVMbL/hwWqbzlQoJsWCOavrdnLkemwNoC/EOwtUFch3fuo+cbcXYQ==} /@webassemblyjs/helper-api-error/1.11.1: resolution: {integrity: sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==} - dev: false /@webassemblyjs/helper-api-error/1.11.5: resolution: {integrity: sha512-L65bDPmfpY0+yFrsgz8b6LhXmbbs38OnwDCf6NpnMUYqa+ENfE5Dq9E42ny0qz/PdR0LJyq/T5YijPnU8AXEpA==} /@webassemblyjs/helper-buffer/1.11.1: resolution: {integrity: sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==} - dev: false /@webassemblyjs/helper-buffer/1.11.5: resolution: {integrity: sha512-fDKo1gstwFFSfacIeH5KfwzjykIE6ldh1iH9Y/8YkAZrhmu4TctqYjSh7t0K2VyDSXOZJ1MLhht/k9IvYGcIxg==} @@ -8284,7 +8359,6 @@ packages: '@webassemblyjs/floating-point-hex-parser': 1.11.1 '@webassemblyjs/helper-api-error': 1.11.1 '@xtuc/long': 4.2.2 - dev: false /@webassemblyjs/helper-numbers/1.11.5: resolution: {integrity: sha512-DhykHXM0ZABqfIGYNv93A5KKDw/+ywBFnuWybZZWcuzWHfbp21wUfRkbtz7dMGwGgT4iXjWuhRMA2Mzod6W4WA==} @@ -8295,7 +8369,6 @@ packages: /@webassemblyjs/helper-wasm-bytecode/1.11.1: resolution: {integrity: sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==} - dev: false /@webassemblyjs/helper-wasm-bytecode/1.11.5: resolution: {integrity: sha512-oC4Qa0bNcqnjAowFn7MPCETQgDYytpsfvz4ujZz63Zu/a/v71HeCAAmZsgZ3YVKec3zSPYytG3/PrRCqbtcAvA==} @@ -8307,7 +8380,6 @@ packages: '@webassemblyjs/helper-buffer': 1.11.1 '@webassemblyjs/helper-wasm-bytecode': 1.11.1 '@webassemblyjs/wasm-gen': 1.11.1 - dev: false /@webassemblyjs/helper-wasm-section/1.11.5: resolution: {integrity: sha512-uEoThA1LN2NA+K3B9wDo3yKlBfVtC6rh0i4/6hvbz071E8gTNZD/pT0MsBf7MeD6KbApMSkaAK0XeKyOZC7CIA==} @@ -8321,7 +8393,6 @@ packages: resolution: {integrity: sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==} dependencies: '@xtuc/ieee754': 1.2.0 - dev: false /@webassemblyjs/ieee754/1.11.5: resolution: {integrity: sha512-37aGq6qVL8A8oPbPrSGMBcp38YZFXcHfiROflJn9jxSdSMMM5dS5P/9e2/TpaJuhE+wFrbukN2WI6Hw9MH5acg==} @@ -8332,7 +8403,6 @@ packages: resolution: {integrity: sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==} dependencies: '@xtuc/long': 4.2.2 - dev: false /@webassemblyjs/leb128/1.11.5: resolution: {integrity: sha512-ajqrRSXaTJoPW+xmkfYN6l8VIeNnR4vBOTQO9HzR7IygoCcKWkICbKFbVTNMjMgMREqXEr0+2M6zukzM47ZUfQ==} @@ -8341,7 +8411,6 @@ packages: /@webassemblyjs/utf8/1.11.1: resolution: {integrity: sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==} - dev: false /@webassemblyjs/utf8/1.11.5: resolution: {integrity: sha512-WiOhulHKTZU5UPlRl53gHR8OxdGsSOxqfpqWeA2FmcwBMaoEdz6b2x2si3IwC9/fSPLfe8pBMRTHVMk5nlwnFQ==} @@ -8357,7 +8426,6 @@ packages: '@webassemblyjs/wasm-opt': 1.11.1 '@webassemblyjs/wasm-parser': 1.11.1 '@webassemblyjs/wast-printer': 1.11.1 - dev: false /@webassemblyjs/wasm-edit/1.11.5: resolution: {integrity: sha512-C0p9D2fAu3Twwqvygvf42iGCQ4av8MFBLiTb+08SZ4cEdwzWx9QeAHDo1E2k+9s/0w1DM40oflJOpkZ8jW4HCQ==} @@ -8379,7 +8447,6 @@ packages: '@webassemblyjs/ieee754': 1.11.1 '@webassemblyjs/leb128': 1.11.1 '@webassemblyjs/utf8': 1.11.1 - dev: false /@webassemblyjs/wasm-gen/1.11.5: resolution: {integrity: sha512-14vteRlRjxLK9eSyYFvw1K8Vv+iPdZU0Aebk3j6oB8TQiQYuO6hj9s4d7qf6f2HJr2khzvNldAFG13CgdkAIfA==} @@ -8397,7 +8464,6 @@ packages: '@webassemblyjs/helper-buffer': 1.11.1 '@webassemblyjs/wasm-gen': 1.11.1 '@webassemblyjs/wasm-parser': 1.11.1 - dev: false /@webassemblyjs/wasm-opt/1.11.5: resolution: {integrity: sha512-tcKwlIXstBQgbKy1MlbDMlXaxpucn42eb17H29rawYLxm5+MsEmgPzeCP8B1Cl69hCice8LeKgZpRUAPtqYPgw==} @@ -8416,7 +8482,6 @@ packages: '@webassemblyjs/ieee754': 1.11.1 '@webassemblyjs/leb128': 1.11.1 '@webassemblyjs/utf8': 1.11.1 - dev: false /@webassemblyjs/wasm-parser/1.11.5: resolution: {integrity: sha512-SVXUIwsLQlc8srSD7jejsfTU83g7pIGr2YYNb9oHdtldSxaOhvA5xwvIiWIfcX8PlSakgqMXsLpLfbbJ4cBYew==} @@ -8433,7 +8498,6 @@ packages: dependencies: '@webassemblyjs/ast': 1.11.1 '@xtuc/long': 4.2.2 - dev: false /@webassemblyjs/wast-printer/1.11.5: resolution: {integrity: sha512-f7Pq3wvg3GSPUPzR0F6bmI89Hdb+u9WXrSKc4v+N0aV0q6r42WoF92Jp2jEorBEBRoRNXgjp53nBniDXcqZYPA==} @@ -9439,7 +9503,6 @@ packages: unpipe: 1.0.0 transitivePeerDependencies: - supports-color - dev: false /body-parser/1.20.1: resolution: {integrity: sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==} @@ -10126,7 +10189,6 @@ packages: /compare-versions/6.0.0-rc.1: resolution: {integrity: sha512-cFhkjbGY1jLFWIV7KegECbfuyYPxSGvgGkdkfM+ibboQDoPwg2FRHm5BSNTOApiauRBzJIQH7qvOJs2sW5ueKQ==} - dev: false /compressible/2.0.18: resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==} @@ -11367,7 +11429,6 @@ packages: dependencies: graceful-fs: 4.2.10 tapable: 2.2.1 - dev: false /enhanced-resolve/5.14.1: resolution: {integrity: sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==} @@ -11470,7 +11531,6 @@ packages: /es-module-lexer/0.9.3: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} - dev: false /es-module-lexer/1.2.0: resolution: {integrity: sha512-2BMfqBDeVCcOlLaL1ZAfp+D868SczNpKArrTM3dhpd7dK/OVlogzY15qpUngt+LMTq5UC/csb9vVQAgupucSbA==} @@ -12471,7 +12531,6 @@ packages: vary: 1.1.2 transitivePeerDependencies: - supports-color - dev: false /express/4.18.2: resolution: {integrity: sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==} @@ -13605,7 +13664,6 @@ packages: micromatch: 4.0.5 transitivePeerDependencies: - debug - dev: true /http-proxy-middleware/2.0.6_@types+express@4.17.17: resolution: {integrity: sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==} @@ -18324,7 +18382,6 @@ packages: engines: {node: '>=0.6'} dependencies: side-channel: 1.0.4 - dev: false /qs/6.11.0: resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==} @@ -18418,6 +18475,18 @@ packages: rax-is-valid-element: 1.0.1 dev: false + /rax-compat/0.2.6: + resolution: {integrity: sha512-ewGDk3F8a5Wi5/EjIYkG4GEaOhnHxzbaNgd7Nak1UWdqVVF5IcId46LqGcAemFZgLExmDoOfj4JQB/6LcOloEQ==} + peerDependencies: + react: ^18 + react-dom: ^18 + dependencies: + '@ice/appear': 0.2.0 + '@swc/helpers': 0.4.14 + create-react-class: 15.7.0 + style-unit: 3.0.5 + dev: false + /rax-create-factory/1.0.0_rax@1.2.3: resolution: {integrity: sha512-blBaVrurj/BOWelJhQWiuc0Kk8Ons1jsNsX78omaPBLkSOL7OkyJ3NC/0iKXHu425yWrGB6e5vho/qabROC7VQ==} engines: {npm: '>=3.0.0'} @@ -21339,6 +21408,31 @@ packages: supports-hyperlinks: 2.3.0 dev: true + /terser-webpack-plugin/5.3.5_2nc2rfglmyzuekdnn6alrwwgma: + resolution: {integrity: sha512-AOEDLDxD2zylUGf/wxHxklEkOe2/r+seuyOWujejFrIxHf11brA1/dWQNIgXa1c6/Wkxgu7zvv0JhOWfc2ELEA==} + 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.17 + '@swc/core': 1.3.19 + esbuild: 0.17.16 + jest-worker: 27.5.1 + schema-utils: 3.1.1 + serialize-javascript: 6.0.1 + terser: 5.14.2 + webpack: 5.76.0_w34or7orauknzckzea4nxxqrru + /terser-webpack-plugin/5.3.5_kn3rentq3i47ljvblyy4hgdaoi: resolution: {integrity: sha512-AOEDLDxD2zylUGf/wxHxklEkOe2/r+seuyOWujejFrIxHf11brA1/dWQNIgXa1c6/Wkxgu7zvv0JhOWfc2ELEA==} engines: {node: '>= 10.13.0'} @@ -21388,7 +21482,7 @@ packages: serialize-javascript: 6.0.1 terser: 5.14.2 webpack: 5.76.0_esbuild@0.17.16 - dev: false + dev: true /terser-webpack-plugin/5.3.6_webpack@5.86.0: resolution: {integrity: sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==} @@ -21436,6 +21530,7 @@ packages: serialize-javascript: 6.0.1 terser: 5.16.5 webpack: 5.86.0_esbuild@0.17.16 + dev: true /terser-webpack-plugin/5.3.7_kn3rentq3i47ljvblyy4hgdaoi: resolution: {integrity: sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==} @@ -22665,8 +22760,7 @@ packages: mime-types: 2.1.35 range-parser: 1.2.1 schema-utils: 4.0.0 - webpack: 5.76.0_esbuild@0.17.16 - dev: false + webpack: 5.76.0_w34or7orauknzckzea4nxxqrru /webpack-dev-middleware/5.3.3_webpack@5.86.0: resolution: {integrity: sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==} @@ -22695,8 +22789,7 @@ packages: mime-types: 2.1.35 range-parser: 1.2.1 schema-utils: 4.0.0 - webpack: 5.76.0_esbuild@0.17.16 - dev: false + webpack: 5.76.0_w34or7orauknzckzea4nxxqrru /webpack-dev-server/4.11.1_webpack@5.86.0: resolution: {integrity: sha512-lILVz9tAUy1zGFwieuaQtYiadImb5M3d+H+L1zDYalYoDl0cksAB1UNyuE5MMWJrG6zR1tXkCP2fitl7yoUJiw==} @@ -22744,6 +22837,7 @@ packages: - debug - supports-color - utf-8-validate + dev: true /webpack-dev-server/4.13.1_webpack@5.76.0: resolution: {integrity: sha512-5tWg00bnWbYgkN+pd5yISQKDejRBYGEw15RaEEslH+zdbNDxxaZvEAO2WulaSaFKb5n3YG8JXsGaDsut1D0xdA==} @@ -22786,7 +22880,7 @@ packages: serve-index: 1.9.1 sockjs: 0.3.24 spdy: 4.0.2 - webpack: 5.76.0_esbuild@0.17.16 + webpack: 5.76.0_w34or7orauknzckzea4nxxqrru webpack-dev-middleware: 5.3.3_webpack@5.76.0 ws: 8.13.0 transitivePeerDependencies: @@ -22794,7 +22888,6 @@ packages: - debug - supports-color - utf-8-validate - dev: false /webpack-dev-server/4.13.2: resolution: {integrity: sha512-5i6TrGBRxG4vnfDpB6qSQGfnB6skGBXNL5/542w2uRGLimX6qeE5BQMLrzIC3JYV/xlGOv+s+hTleI9AZKUQNw==} @@ -23008,7 +23101,46 @@ packages: - '@swc/core' - esbuild - uglify-js - dev: false + dev: true + + /webpack/5.76.0_w34or7orauknzckzea4nxxqrru: + resolution: {integrity: sha512-l5sOdYBDunyf72HW8dF23rFtWq/7Zgvt/9ftMof71E/yUb1YLOBmTgA2K4vQthB3kotMrSj609txVE0dnr2fjA==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + webpack-cli: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + dependencies: + '@types/eslint-scope': 3.7.4 + '@types/estree': 0.0.51 + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/wasm-edit': 1.11.1 + '@webassemblyjs/wasm-parser': 1.11.1 + acorn: 8.8.2 + acorn-import-assertions: 1.9.0_acorn@8.8.2 + browserslist: 4.21.5 + chrome-trace-event: 1.0.3 + enhanced-resolve: 5.14.1 + es-module-lexer: 0.9.3 + eslint-scope: 5.1.1 + events: 3.3.0 + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.10 + 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.1.2 + tapable: 2.2.1 + terser-webpack-plugin: 5.3.5_2nc2rfglmyzuekdnn6alrwwgma + watchpack: 2.4.0 + webpack-sources: 3.2.3 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js /webpack/5.86.0: resolution: {integrity: sha512-3BOvworZ8SO/D4GVP+GoRC3fVeg5MO4vzmq8TJJEkdmopxyazGDxN8ClqN12uzrZW9Tv8EED8v5VSb6Sqyi0pg==} @@ -23087,6 +23219,7 @@ packages: - '@swc/core' - esbuild - uglify-js + dev: true /webpack/5.86.0_w34or7orauknzckzea4nxxqrru: resolution: {integrity: sha512-3BOvworZ8SO/D4GVP+GoRC3fVeg5MO4vzmq8TJJEkdmopxyazGDxN8ClqN12uzrZW9Tv8EED8v5VSb6Sqyi0pg==} @@ -23339,6 +23472,7 @@ packages: optional: true utf-8-validate: optional: true + dev: true /ws/8.13.0: resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} @@ -23363,7 +23497,6 @@ packages: optional: true utf-8-validate: optional: true - dev: false /xdg-basedir/4.0.0: resolution: {integrity: sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==} @@ -23499,11 +23632,9 @@ packages: zod: ^3.18.0 dependencies: zod: 3.21.4 - dev: false /zod/3.21.4: resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==} - dev: false /zwitch/1.0.5: resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==}