diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3662b37 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib" +} \ No newline at end of file diff --git a/dist/makeRspackConfig.d.ts b/dist/makeRspackConfig.d.ts index 7c0f285..23e683f 100644 --- a/dist/makeRspackConfig.d.ts +++ b/dist/makeRspackConfig.d.ts @@ -1,339 +1,7 @@ -/// +import type { Configuration } from '@rspack/core'; import type { CreateFinalRspackConfig } from './createRspackDevServer'; export declare const CYPRESS_RSPACK_ENTRYPOINT: string; /** * Creates a rspack compatible rspack "configuration" to pass to the sourced rspack function */ -export declare function makeRspackConfig(config: CreateFinalRspackConfig): Promise<{ - name?: string | undefined; - dependencies?: string[] | undefined; - entry?: string | string[] | Record | undefined; - output?: { - path?: string | undefined; - clean?: boolean | undefined; - publicPath?: string | undefined; - filename?: string | undefined; - chunkFilename?: string | undefined; - crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | undefined; - cssChunkFilename?: string | undefined; - hotUpdateMainFilename?: string | undefined; - hotUpdateChunkFilename?: string | undefined; - hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | undefined; - uniqueName?: string | undefined; - chunkLoadingGlobal?: string | undefined; - enabledLibraryTypes?: string[] | undefined; - library?: string | string[] | { - amd?: string | undefined; - commonjs?: string | undefined; - root?: string | string[] | undefined; - } | { - type: string; - amdContainer?: string | undefined; - auxiliaryComment?: string | { - amd?: string | undefined; - commonjs?: string | undefined; - commonjs2?: string | undefined; - root?: string | undefined; - } | undefined; - export?: string | string[] | undefined; - name?: string | string[] | { - amd?: string | undefined; - commonjs?: string | undefined; - root?: string | string[] | undefined; - } | undefined; - umdNamedDefine?: boolean | undefined; - } | undefined; - libraryExport?: string | string[] | undefined; - libraryTarget?: string | undefined; - umdNamedDefine?: boolean | undefined; - amdContainer?: string | undefined; - auxiliaryComment?: string | { - amd?: string | undefined; - commonjs?: string | undefined; - commonjs2?: string | undefined; - root?: string | undefined; - } | undefined; - module?: boolean | undefined; - strictModuleExceptionHandling?: boolean | undefined; - strictModuleErrorHandling?: boolean | undefined; - globalObject?: string | undefined; - importFunctionName?: string | undefined; - iife?: boolean | undefined; - wasmLoading?: string | false | undefined; - enabledWasmLoadingTypes?: string[] | undefined; - webassemblyModuleFilename?: string | undefined; - chunkFormat?: string | false | undefined; - chunkLoading?: string | false | undefined; - enabledChunkLoadingTypes?: string[] | undefined; - trustedTypes?: string | true | { - policyName?: string | undefined; - } | undefined; - sourceMapFilename?: string | undefined; - hashDigest?: string | undefined; - hashDigestLength?: number | undefined; - hashFunction?: "md4" | "xxhash64" | undefined; - hashSalt?: string | undefined; - asyncChunks?: boolean | undefined; - workerChunkLoading?: string | false | undefined; - workerWasmLoading?: string | false | undefined; - workerPublicPath?: string | undefined; - scriptType?: false | "module" | "text/javascript" | undefined; - devtoolNamespace?: string | undefined; - devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; - devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; - } | undefined; - target?: false | "node" | "async-node" | "es5" | "web" | "webworker" | "es3" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "async-node" | "es5" | "web" | "webworker" | "es3" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined; - mode?: "production" | "development" | "none" | undefined; - experiments?: { - lazyCompilation?: boolean | undefined; - asyncWebAssembly?: boolean | undefined; - outputModule?: boolean | undefined; - topLevelAwait?: boolean | undefined; - newSplitChunks?: boolean | undefined; - css?: boolean | undefined; - futureDefaults?: boolean | undefined; - rspackFuture?: { - newTreeshaking?: boolean | undefined; - disableApplyEntryLazily?: boolean | undefined; - bundlerInfo?: { - version?: string | undefined; - force?: boolean | "version"[] | undefined; - } | undefined; - } | undefined; - } | undefined; - externals?: string | RegExp | Record> | ((args_0: { - context?: string | undefined; - dependencyType?: string | undefined; - request?: string | undefined; - }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "jsonp" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { - context?: string | undefined; - dependencyType?: string | undefined; - request?: string | undefined; - }, ...args_1: unknown[]) => Promise>) | (string | RegExp | Record> | ((args_0: { - context?: string | undefined; - dependencyType?: string | undefined; - request?: string | undefined; - }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "jsonp" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { - context?: string | undefined; - dependencyType?: string | undefined; - request?: string | undefined; - }, ...args_1: unknown[]) => Promise>))[] | undefined; - externalsType?: "module" | "promise" | "script" | "commonjs" | "jsonp" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "node-commonjs" | undefined; - externalsPresets?: { - node?: boolean | undefined; - web?: boolean | undefined; - webAsync?: boolean | undefined; - electron?: boolean | undefined; - electronMain?: boolean | undefined; - electronPreload?: boolean | undefined; - electronRenderer?: boolean | undefined; - } | undefined; - infrastructureLogging?: { - appendOnly?: boolean | undefined; - colors?: boolean | undefined; - console?: Console | undefined; - debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; - level?: "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; - stream?: NodeJS.WritableStream | undefined; - } | undefined; - cache?: boolean | undefined; - context?: string | undefined; - devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined; - node?: false | { - __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; - __filename?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; - global?: boolean | "warn" | undefined; - } | undefined; - ignoreWarnings?: (RegExp | ((args_0: Error, args_1: import("@rspack/core").Compilation, ...args_2: unknown[]) => boolean))[] | undefined; - watchOptions?: { - aggregateTimeout?: number | undefined; - followSymlinks?: boolean | undefined; - ignored?: string | RegExp | string[] | undefined; - poll?: number | boolean | undefined; - stdin?: boolean | undefined; - } | undefined; - watch?: boolean | undefined; - stats?: boolean | "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | { - all?: boolean | undefined; - preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined; - assets?: boolean | undefined; - chunks?: boolean | undefined; - modules?: boolean | undefined; - entrypoints?: boolean | undefined; - chunkGroups?: boolean | undefined; - warnings?: boolean | undefined; - warningsCount?: boolean | undefined; - errors?: boolean | undefined; - errorsCount?: boolean | undefined; - colors?: boolean | undefined; - hash?: boolean | undefined; - version?: boolean | undefined; - reasons?: boolean | undefined; - publicPath?: boolean | undefined; - outputPath?: boolean | undefined; - chunkModules?: boolean | undefined; - chunkRelations?: boolean | undefined; - ids?: boolean | undefined; - timings?: boolean | undefined; - builtAt?: boolean | undefined; - moduleAssets?: boolean | undefined; - modulesSpace?: number | undefined; - nestedModules?: boolean | undefined; - source?: boolean | undefined; - logging?: boolean | "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; - loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; - loggingTrace?: boolean | undefined; - runtimeModules?: boolean | undefined; - children?: boolean | undefined; - usedExports?: boolean | undefined; - providedExports?: boolean | undefined; - optimizationBailout?: boolean | undefined; - } | undefined; - snapshot?: { - module?: { - hash?: boolean | undefined; - timestamp?: boolean | undefined; - } | undefined; - resolve?: { - hash?: boolean | undefined; - timestamp?: boolean | undefined; - } | undefined; - } | undefined; - optimization?: { - moduleIds?: "named" | "deterministic" | undefined; - chunkIds?: "named" | "deterministic" | undefined; - minimize?: boolean | undefined; - minimizer?: (false | "" | 0 | import("@rspack/core").RspackPluginInstance | import("@rspack/core").RspackPluginFunction | "..." | null | undefined)[] | undefined; - mergeDuplicateChunks?: boolean | undefined; - splitChunks?: false | { - chunks?: RegExp | "all" | "async" | "initial" | ((args_0: import("@rspack/core/dist/Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined; - minChunks?: number | undefined; - name?: string | false | ((args_0: import("@rspack/core/dist/Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined; - minSize?: number | undefined; - maxSize?: number | undefined; - maxAsyncSize?: number | undefined; - maxInitialSize?: number | undefined; - automaticNameDelimiter?: string | undefined; - cacheGroups?: Record boolean) | undefined; - minChunks?: number | undefined; - name?: string | false | ((args_0: import("@rspack/core/dist/Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined; - minSize?: number | undefined; - maxSize?: number | undefined; - maxAsyncSize?: number | undefined; - maxInitialSize?: number | undefined; - automaticNameDelimiter?: string | undefined; - test?: string | RegExp | ((args_0: import("@rspack/core/dist/Module").Module, ...args_1: unknown[]) => unknown) | undefined; - priority?: number | undefined; - enforce?: boolean | undefined; - filename?: string | undefined; - reuseExistingChunk?: boolean | undefined; - type?: string | RegExp | undefined; - idHint?: string | undefined; - }> | undefined; - maxAsyncRequests?: number | undefined; - maxInitialRequests?: number | undefined; - fallbackCacheGroup?: { - chunks?: RegExp | "all" | "async" | "initial" | ((args_0: import("@rspack/core/dist/Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined; - minSize?: number | undefined; - maxSize?: number | undefined; - maxAsyncSize?: number | undefined; - maxInitialSize?: number | undefined; - automaticNameDelimiter?: string | undefined; - } | undefined; - hidePathInfo?: boolean | undefined; - } | undefined; - runtimeChunk?: boolean | "multiple" | "single" | { - name?: string | ((...args: unknown[]) => string | undefined) | undefined; - } | undefined; - removeAvailableModules?: boolean | undefined; - removeEmptyChunks?: boolean | undefined; - realContentHash?: boolean | undefined; - sideEffects?: boolean | "flag" | undefined; - providedExports?: boolean | undefined; - concatenateModules?: boolean | undefined; - innerGraph?: boolean | undefined; - usedExports?: boolean | "global" | undefined; - mangleExports?: boolean | "deterministic" | "size" | undefined; - nodeEnv?: string | false | undefined; - } | undefined; - resolve?: import("@rspack/core").ResolveOptions | undefined; - resolveLoader?: import("@rspack/core").ResolveOptions | undefined; - plugins?: (false | "" | 0 | import("@rspack/core").RspackPluginInstance | import("@rspack/core").RspackPluginFunction | null | undefined)[] | undefined; - devServer?: import("@rspack/core").DevServer | undefined; - builtins?: import("@rspack/core/dist/builtin-plugin").Builtins | undefined; - module?: { - defaultRules?: (false | "" | 0 | "..." | import("@rspack/core").RuleSetRule | null | undefined)[] | undefined; - rules?: (false | "" | 0 | "..." | import("@rspack/core").RuleSetRule | null | undefined)[] | undefined; - parser?: { - asset?: { - dataUrlCondition?: { - maxSize?: number | undefined; - } | undefined; - } | undefined; - javascript?: { - dynamicImportMode?: "eager" | "lazy" | undefined; - dynamicImportPreload?: number | boolean | undefined; - dynamicImportPrefetch?: number | boolean | undefined; - url?: boolean | "relative" | undefined; - } | undefined; - } | Record> | undefined; - generator?: Record> | { - asset?: { - dataUrl?: { - encoding?: false | "base64" | undefined; - mimetype?: string | undefined; - } | ((args_0: { - filename: string; - content: string; - }, ...args_1: unknown[]) => string) | undefined; - filename?: string | undefined; - publicPath?: string | undefined; - } | undefined; - "asset/inline"?: { - dataUrl?: { - encoding?: false | "base64" | undefined; - mimetype?: string | undefined; - } | ((args_0: { - filename: string; - content: string; - }, ...args_1: unknown[]) => string) | undefined; - } | undefined; - "asset/resource"?: { - filename?: string | undefined; - publicPath?: string | undefined; - } | undefined; - } | undefined; - noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; - } | undefined; - profile?: boolean | undefined; - bail?: boolean | undefined; -}>; +export declare function makeRspackConfig(config: CreateFinalRspackConfig): Promise; diff --git a/package.json b/package.json index 90ed3a8..756ddc7 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test": "jest" }, "dependencies": { - "@rspack/cli": "0.5.8", + "@rspack/cli": "0.6.3", "find-up": "6.3.0", "local-pkg": "0.4.1", "tslib": "^2.3.1", @@ -28,8 +28,8 @@ "@babel/preset-env": "^7.24.4", "@babel/preset-typescript": "^7.24.1", "@jest/globals": "^29.7.0", - "@rspack/core": "0.5.8", - "@rspack/dev-server": "0.5.8", + "@rspack/core": "0.6.3", + "@rspack/dev-server": "0.6.3", "@types/debug": "^4.1.12", "@types/fs-extra": "^11.0.4", "@types/jest": "^29.5.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 24b152b..ea2e183 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@rspack/cli': - specifier: 0.5.8 - version: 0.5.8(@rspack/core@0.5.8)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0) + specifier: 0.6.3 + version: 0.6.3(@rspack/core@0.6.3)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0) find-up: specifier: 6.3.0 version: 6.3.0 @@ -37,11 +37,11 @@ importers: specifier: ^29.7.0 version: 29.7.0 '@rspack/core': - specifier: 0.5.8 - version: 0.5.8 + specifier: 0.6.3 + version: 0.6.3 '@rspack/dev-server': - specifier: 0.5.8 - version: 0.5.8(@rspack/core@0.5.8)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0) + specifier: 0.6.3 + version: 0.6.3(@rspack/core@0.6.3)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0) '@types/debug': specifier: ^4.1.12 version: 4.1.12 @@ -962,17 +962,17 @@ packages: '@leichtgewicht/ip-codec@2.0.4': resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==} - '@module-federation/runtime-tools@0.0.8': - resolution: {integrity: sha512-tqx3wlVHnpWLk+vn22c0x9Nv1BqdZnoS6vdMb53IsVpbQIFP70nhhvymHUyFuPkoLzMFidS7GpG58DYT/4lvCw==} + '@module-federation/runtime-tools@0.1.6': + resolution: {integrity: sha512-7ILVnzMIa0Dlc0Blck5tVZG1tnk1MmLnuZpLOMpbdW+zl+N6wdMjjHMjEZFCUAJh2E5XJ3BREwfX8Ets0nIkLg==} - '@module-federation/runtime@0.0.8': - resolution: {integrity: sha512-Hi9g10aHxHdQ7CbchSvke07YegYwkf162XPOmixNmJr5Oy4wVa2d9yIVSrsWFhBRbbvM5iJP6GrSuEq6HFO3ug==} + '@module-federation/runtime@0.1.6': + resolution: {integrity: sha512-nj6a+yJ+QxmcE89qmrTl4lphBIoAds0PFPVGnqLRWflwAP88jrCcrrTqRhARegkFDL+wE9AE04+h6jzlbIfMKg==} - '@module-federation/sdk@0.0.8': - resolution: {integrity: sha512-lkasywBItjUTNT0T0IskonDE2E/2tXE9UhUCPVoDL3NteDUSFGg4tpkF+cey1pD8mHh0XJcGrCuOW7s96peeAg==} + '@module-federation/sdk@0.1.6': + resolution: {integrity: sha512-qifXpyYLM7abUeEOIfv0oTkguZgRZuwh89YOAYIZJlkP6QbRG7DJMQvtM8X2yHXm9PTk0IYNnOJH0vNQCo6auQ==} - '@module-federation/webpack-bundler-runtime@0.0.8': - resolution: {integrity: sha512-ULwrTVzF47+6XnWybt6SIq97viEYJRv4P/DByw5h7PSX9PxSGyMm5pHfXdhcb7tno7VknL0t2V8F48fetVL9kA==} + '@module-federation/webpack-bundler-runtime@0.1.6': + resolution: {integrity: sha512-K5WhKZ4RVNaMEtfHsd/9CNCgGKB0ipbm/tgweNNeC11mEuBTNxJ09Y630vg3WPkKv9vfMCuXg2p2Dk+Q/KWTSA==} '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -989,62 +989,62 @@ packages: '@polka/url@1.0.0-next.21': resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} - '@rspack/binding-darwin-arm64@0.5.8': - resolution: {integrity: sha512-kvz2f9bMoFOEuXJ/fyJzOWuNXq5EvQhA19cqgwrDRQgfc5sQ0qv2vW3qI5v2oVOHccQBwKHkVTHHDn5vWlnRsQ==} + '@rspack/binding-darwin-arm64@0.6.3': + resolution: {integrity: sha512-NS6LFwJYjOFIy7mp8FCquox/xCiWuc6a3OQtx+f80c+86uDOiQyix6BJJa3JDdQQ6DmAR3L2eRzV+XVnCzZwNA==} cpu: [arm64] os: [darwin] - '@rspack/binding-darwin-x64@0.5.8': - resolution: {integrity: sha512-TgVtKntzOGcIczogZXMWqqXrvK07XjRnz1ES56RYfsOVvzTEmldvX5S+pQIwYzCt7fNddIMl9muHa9qYswzFbQ==} + '@rspack/binding-darwin-x64@0.6.3': + resolution: {integrity: sha512-QGhB9+FeqQDc/I6hg5woc0a6XYQoNsCaJ5pAxnhSh4/wSe3IrFtokyqE2SUSwfWjkdNEnKYBC4p6Cc5KbkK7sg==} cpu: [x64] os: [darwin] - '@rspack/binding-linux-arm64-gnu@0.5.8': - resolution: {integrity: sha512-g+4ddgEpK+R50mqKs6jPr7IiPGpukabbSBSYGGezErHMMAfgSxuRQ1IGP/pOOHQXXmHJbrbqk4Ow56vE0fKZnQ==} + '@rspack/binding-linux-arm64-gnu@0.6.3': + resolution: {integrity: sha512-tZxqV+bCxVyr8Z0skQoSnj7WYjwjuw34wrSUdTFLL6vw7nRgGiOhE2ZcRLa0coNHUPyq6dcWIQPwzg0ToHxLkA==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-arm64-musl@0.5.8': - resolution: {integrity: sha512-MistQCUYkcwb4u3XTnmwGimxD161LlRZqP/7PPrInaBNCpYQYnXI4RX6RhMgusnjaW406N0XBS94Q9QNwujyxg==} + '@rspack/binding-linux-arm64-musl@0.6.3': + resolution: {integrity: sha512-1cNTLQE9c6CMGhFAuLdI3jYKhGiSiPCMRWb50GuzsfnbLcpnYfwHko7Fn/C/SOjP+xUZf7GlTTgrZssHP9yPrA==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-x64-gnu@0.5.8': - resolution: {integrity: sha512-DlsCXeSZKKOh7T8uwIcUgbOXLcsoUVCHkWx04GDBi09OYHjrT+dc1Iqpy5uHcIScRWjtVgGnOb6M9EsyABNoAw==} + '@rspack/binding-linux-x64-gnu@0.6.3': + resolution: {integrity: sha512-/bf9K3k8YNRTtNWbcG66CosIxvd77CIbq7XqPxW1OCsxzcl8nmTI0h1/bxgmiBchiAvNCou8mmP08GEvQXdUdQ==} cpu: [x64] os: [linux] - '@rspack/binding-linux-x64-musl@0.5.8': - resolution: {integrity: sha512-B4V5wFGig+WCNbeOwU6O8rvxzu9sONUML6YEe/NiR+e9NLsYemEQG8volZVQ4WM/SDii6G4h9z/2jEoGXcfRsQ==} + '@rspack/binding-linux-x64-musl@0.6.3': + resolution: {integrity: sha512-816xaFVOI6qs4Np4YrUzoNaTLrsthR63rFqsQgguD3ytVvTpr0nIXT4XrKvGHF2FDEhgpF+FTqyn3M3NIBK/2A==} cpu: [x64] os: [linux] - '@rspack/binding-win32-arm64-msvc@0.5.8': - resolution: {integrity: sha512-ubWsFoJkUQNOt1w1WDQCk5UvFPOII/dNj/orpEe+NPveEn6i+im2euK+6fKucmDrXAyC1ZhEzjJeFMjcvyS9Dg==} + '@rspack/binding-win32-arm64-msvc@0.6.3': + resolution: {integrity: sha512-lQg5CzYXI5BxAP+9Kja3yx9Y/xwd4m51xWPXFhjODn8s76LGIhfmbJHh8OG5QhcQACi88aj2hqW8BHFwOWPlsw==} cpu: [arm64] os: [win32] - '@rspack/binding-win32-ia32-msvc@0.5.8': - resolution: {integrity: sha512-NPwkNbEe/IY/I93E07q3p7AM4rLDLkpgTzBPFhi6jgNzK8k/eGAUIdaEDJhEkWzsI8o8m7I5XlJyxrmK5/SWFw==} + '@rspack/binding-win32-ia32-msvc@0.6.3': + resolution: {integrity: sha512-SP/Crwk4Ac7gGgTxNhcrVQQUS6ze7eDvxgf9I/D/UhBU22GfkLPn5HzFxZk/8gJ1iU+cLeMiqa0DdXPx48x46A==} cpu: [ia32] os: [win32] - '@rspack/binding-win32-x64-msvc@0.5.8': - resolution: {integrity: sha512-ox+PdrWh5VjI3G2GCLoXJ0eZ/lLgxPQsmGkyjikJyaIuetWtMun8khvaoAspnSw3FzHCEbA62vs0ot8YV3DggQ==} + '@rspack/binding-win32-x64-msvc@0.6.3': + resolution: {integrity: sha512-QAXxObKzVKQtV60Ig5TlW7h7ZMz3Z2WDiKJJe0qRakYznSzeEuNcaqTmLbYg9PGWOVLMd8WS6uLEmeLEi5TWAA==} cpu: [x64] os: [win32] - '@rspack/binding@0.5.8': - resolution: {integrity: sha512-RDiiBDeIwCPtqQ/CYMXoFqstaJVGZu3KoUKeuJoiN+TO77OAC0fRs7J/BvV+KLoF35SFpe/XnSLCkv+Nkk9/ow==} + '@rspack/binding@0.6.3': + resolution: {integrity: sha512-F2Ys11Bf87/sI3X1dVT8l7FLGCmQirf8KaTG0FdaObWqnoIeAET0MgP5vohRIy3tqjcmJURyRx2YFc4Btr8ZDQ==} - '@rspack/cli@0.5.8': - resolution: {integrity: sha512-LvPRuYfhISXvE/wNa+EU7ZfwF3lvqCeralNMykabFD5Nr/er6wX/wg/KqVKUL2pGBkXolw9hKuTf5C4qVH17bQ==} + '@rspack/cli@0.6.3': + resolution: {integrity: sha512-XoptGImYIm0YFIQ5RTwMiw2AFB1DMhmih/SocHXrQhGjNsBybHPLLpG9XKPNw8GLdEIVrSTViGHNRYX+X86nQw==} hasBin: true peerDependencies: '@rspack/core': '>=0.4.0' - '@rspack/core@0.5.8': - resolution: {integrity: sha512-F7NiiLCE//5JXsEmS36DcIUiSyi5sylZZ5MKw9ABSGrtqVDB23oOjUxP1kt/Wo6npf0V2eVuAHpoudwJ1lUmhQ==} + '@rspack/core@0.6.3': + resolution: {integrity: sha512-+KfWUywwhGHxwMVnXQPQkqjN8fedDN/0YcjQktK9qrpQ1FyE+EzFgO3n2wW6g1Ty5uftVVrDRQbpBUHxK/gKUw==} engines: {node: '>=16.0.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -1052,8 +1052,8 @@ packages: '@swc/helpers': optional: true - '@rspack/dev-server@0.5.8': - resolution: {integrity: sha512-8Q3tRIIJvYuwRlIC+iYJ1DHJy38z5CbYa3QzqhQ0k1cFNZLzBIAQHOb4JG8lQ4Jfy2yrAbjPOnUGJBkMS2cZTg==} + '@rspack/dev-server@0.6.3': + resolution: {integrity: sha512-KxpLbbBFWm5h8qNon+GvZI+67YBJ39DhtRzJJeaxEWGbb8Z4GLCAf4sRH7nrWTS+kpq7QwSztw0fijBtNuu4Ug==} peerDependencies: '@rspack/core': '*' @@ -4956,21 +4956,21 @@ snapshots: '@leichtgewicht/ip-codec@2.0.4': {} - '@module-federation/runtime-tools@0.0.8': + '@module-federation/runtime-tools@0.1.6': dependencies: - '@module-federation/runtime': 0.0.8 - '@module-federation/webpack-bundler-runtime': 0.0.8 + '@module-federation/runtime': 0.1.6 + '@module-federation/webpack-bundler-runtime': 0.1.6 - '@module-federation/runtime@0.0.8': + '@module-federation/runtime@0.1.6': dependencies: - '@module-federation/sdk': 0.0.8 + '@module-federation/sdk': 0.1.6 - '@module-federation/sdk@0.0.8': {} + '@module-federation/sdk@0.1.6': {} - '@module-federation/webpack-bundler-runtime@0.0.8': + '@module-federation/webpack-bundler-runtime@0.1.6': dependencies: - '@module-federation/runtime': 0.0.8 - '@module-federation/sdk': 0.0.8 + '@module-federation/runtime': 0.1.6 + '@module-federation/sdk': 0.1.6 '@nodelib/fs.scandir@2.1.5': dependencies: @@ -4986,50 +4986,50 @@ snapshots: '@polka/url@1.0.0-next.21': {} - '@rspack/binding-darwin-arm64@0.5.8': + '@rspack/binding-darwin-arm64@0.6.3': optional: true - '@rspack/binding-darwin-x64@0.5.8': + '@rspack/binding-darwin-x64@0.6.3': optional: true - '@rspack/binding-linux-arm64-gnu@0.5.8': + '@rspack/binding-linux-arm64-gnu@0.6.3': optional: true - '@rspack/binding-linux-arm64-musl@0.5.8': + '@rspack/binding-linux-arm64-musl@0.6.3': optional: true - '@rspack/binding-linux-x64-gnu@0.5.8': + '@rspack/binding-linux-x64-gnu@0.6.3': optional: true - '@rspack/binding-linux-x64-musl@0.5.8': + '@rspack/binding-linux-x64-musl@0.6.3': optional: true - '@rspack/binding-win32-arm64-msvc@0.5.8': + '@rspack/binding-win32-arm64-msvc@0.6.3': optional: true - '@rspack/binding-win32-ia32-msvc@0.5.8': + '@rspack/binding-win32-ia32-msvc@0.6.3': optional: true - '@rspack/binding-win32-x64-msvc@0.5.8': + '@rspack/binding-win32-x64-msvc@0.6.3': optional: true - '@rspack/binding@0.5.8': + '@rspack/binding@0.6.3': optionalDependencies: - '@rspack/binding-darwin-arm64': 0.5.8 - '@rspack/binding-darwin-x64': 0.5.8 - '@rspack/binding-linux-arm64-gnu': 0.5.8 - '@rspack/binding-linux-arm64-musl': 0.5.8 - '@rspack/binding-linux-x64-gnu': 0.5.8 - '@rspack/binding-linux-x64-musl': 0.5.8 - '@rspack/binding-win32-arm64-msvc': 0.5.8 - '@rspack/binding-win32-ia32-msvc': 0.5.8 - '@rspack/binding-win32-x64-msvc': 0.5.8 - - '@rspack/cli@0.5.8(@rspack/core@0.5.8)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0)': + '@rspack/binding-darwin-arm64': 0.6.3 + '@rspack/binding-darwin-x64': 0.6.3 + '@rspack/binding-linux-arm64-gnu': 0.6.3 + '@rspack/binding-linux-arm64-musl': 0.6.3 + '@rspack/binding-linux-x64-gnu': 0.6.3 + '@rspack/binding-linux-x64-musl': 0.6.3 + '@rspack/binding-win32-arm64-msvc': 0.6.3 + '@rspack/binding-win32-ia32-msvc': 0.6.3 + '@rspack/binding-win32-x64-msvc': 0.6.3 + + '@rspack/cli@0.6.3(@rspack/core@0.6.3)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0)': dependencies: '@discoveryjs/json-ext': 0.5.7 - '@rspack/core': 0.5.8 - '@rspack/dev-server': 0.5.8(@rspack/core@0.5.8)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0) + '@rspack/core': 0.6.3 + '@rspack/dev-server': 0.6.3(@rspack/core@0.6.3)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0) colorette: 2.0.19 exit-hook: 3.2.0 interpret: 3.1.1 @@ -5046,11 +5046,11 @@ snapshots: - webpack - webpack-cli - '@rspack/core@0.5.8': + '@rspack/core@0.6.3': dependencies: - '@module-federation/runtime-tools': 0.0.8 - '@rspack/binding': 0.5.8 - browserslist: 4.22.2 + '@module-federation/runtime-tools': 0.1.6 + '@rspack/binding': 0.6.3 + browserslist: 4.23.0 enhanced-resolve: 5.12.0 events: 3.3.0 graceful-fs: 4.2.10 @@ -5062,9 +5062,9 @@ snapshots: zod: 3.22.4 zod-validation-error: 1.3.1(zod@3.22.4) - '@rspack/dev-server@0.5.8(@rspack/core@0.5.8)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0)': + '@rspack/dev-server@0.6.3(@rspack/core@0.6.3)(@types/express@4.17.17)(debug@4.3.4)(webpack@5.76.0)': dependencies: - '@rspack/core': 0.5.8 + '@rspack/core': 0.6.3 chokidar: 3.5.3 connect-history-api-fallback: 2.0.0 express: 4.18.1 diff --git a/src/makeRspackConfig.ts b/src/makeRspackConfig.ts index 4b6dce3..a7361b0 100644 --- a/src/makeRspackConfig.ts +++ b/src/makeRspackConfig.ts @@ -55,7 +55,7 @@ async function getRspackConfigFromProjectRoot(projectRoot: string) { /** * Creates a rspack compatible rspack "configuration" to pass to the sourced rspack function */ -export async function makeRspackConfig(config: CreateFinalRspackConfig) { +export async function makeRspackConfig(config: CreateFinalRspackConfig): Promise { let userRspackConfig = config.devServerConfig.rspackConfig const frameworkRspackConfig = config.frameworkConfig as Partial const {