From 917973d0ce2521fc6013319428176f2faf597d36 Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Wed, 6 Aug 2025 16:57:16 +0800 Subject: [PATCH 1/2] fix --- rspack/inline-const/package.json | 14 +++++++++ rspack/inline-const/rspack.config.mjs | 45 +++++++++++++++++++++++++++ rspack/inline-const/src/constants.ts | 11 +++++++ rspack/inline-const/src/index.ts | 11 +++++++ rspack/inline-const/src/reexports.ts | 1 + 5 files changed, 82 insertions(+) create mode 100644 rspack/inline-const/package.json create mode 100644 rspack/inline-const/rspack.config.mjs create mode 100644 rspack/inline-const/src/constants.ts create mode 100644 rspack/inline-const/src/index.ts create mode 100644 rspack/inline-const/src/reexports.ts diff --git a/rspack/inline-const/package.json b/rspack/inline-const/package.json new file mode 100644 index 000000000..cde7523d4 --- /dev/null +++ b/rspack/inline-const/package.json @@ -0,0 +1,14 @@ +{ + "name": "example-builtin-swc-loader", + "version": "1.0.0", + "private": true, + "license": "MIT", + "main": "index.js", + "scripts": { + "build": "rspack build" + }, + "devDependencies": { + "@rspack/cli": "latest", + "@rspack/core": "latest" + } +} diff --git a/rspack/inline-const/rspack.config.mjs b/rspack/inline-const/rspack.config.mjs new file mode 100644 index 000000000..9eaf6524c --- /dev/null +++ b/rspack/inline-const/rspack.config.mjs @@ -0,0 +1,45 @@ +// @ts-check +import { rspack } from "@rspack/core"; + +/** @type {import("@rspack/core").Configuration} */ +export default { + entry: { + main: "./src/index.ts", + }, + experiments: { + inlineConst: true, + }, + mode: "production", + optimization: { + // disable minimize so you can understand the output + minimize: false, + }, + resolve: { + extensions: [".ts", "..."], + }, + plugins: [ + new rspack.DefinePlugin({ + ENV: JSON.stringify("mobile"), + }), + ], + module: { + rules: [ + { + test: /\.ts$/, + use: { + loader: "builtin:swc-loader", + /** @type {import("@rspack/core").SwcLoaderOptions} */ + options: { + jsc: { + parser: { + syntax: "typescript", + }, + target: "es2015", // use target es2015 or greater so swc won't transform const to var + }, + }, + }, + type: "javascript/auto", + }, + ], + }, +}; diff --git a/rspack/inline-const/src/constants.ts b/rspack/inline-const/src/constants.ts new file mode 100644 index 000000000..3aa12d5a6 --- /dev/null +++ b/rspack/inline-const/src/constants.ts @@ -0,0 +1,11 @@ +export const NULL = null; // null can be inlined +export const UNDEFINED = undefined; // undefined can be inlined +export const isMobile = ENV === 'mobile'; // boolean can be inlined +export const shortString = 'hhh'; // lenght <= 6 string can be inlined +export const longString = 'string len greater than 6'; // lenght > 6 string can't be inlined +export const shortNumber = 1.2345; // length <= 6 number can be inlined +export const longNumber = 1.23456; // length > 6 number can't be inlined +const a = 1 << 0; +const b = 1 << 1; +const c = 1 << 2; +export const all = a | b | c; // since 'a', 'b', 'c' are all constants, so 'all' can also be inlined diff --git a/rspack/inline-const/src/index.ts b/rspack/inline-const/src/index.ts new file mode 100644 index 000000000..b5f76aebf --- /dev/null +++ b/rspack/inline-const/src/index.ts @@ -0,0 +1,11 @@ +import { + NULL, + UNDEFINED, + isMobile, + shortString, + longString, + shortNumber, + longNumber, + all, +} from './reexports'; +console.log(NULL, UNDEFINED, isMobile, shortString, longString, shortNumber, longNumber, all); diff --git a/rspack/inline-const/src/reexports.ts b/rspack/inline-const/src/reexports.ts new file mode 100644 index 000000000..c94f80f84 --- /dev/null +++ b/rspack/inline-const/src/reexports.ts @@ -0,0 +1 @@ +export * from './constants'; From df0b79f1a3122a0b547cc7dbff1c69badf298692 Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Thu, 14 Aug 2025 18:12:44 +0800 Subject: [PATCH 2/2] update rspack version --- pnpm-lock.yaml | 192 ++++++++++++++++++++++++++++--- rspack/inline-const/package.json | 4 +- 2 files changed, 181 insertions(+), 15 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6302b567d..1d0d02c76 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,10 +111,10 @@ importers: devDependencies: '@module-federation/enhanced': specifier: ^0.17.1 - version: 0.17.1(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) + version: 0.17.1(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) '@module-federation/rsbuild-plugin': specifier: ^0.17.1 - version: 0.17.1(@rsbuild/core@1.4.11)(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) + version: 0.17.1(@rsbuild/core@1.4.11)(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) '@rsbuild/core': specifier: 1.4.11 version: 1.4.11 @@ -142,10 +142,10 @@ importers: devDependencies: '@module-federation/enhanced': specifier: ^0.17.1 - version: 0.17.1(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) + version: 0.17.1(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) '@module-federation/rsbuild-plugin': specifier: ^0.17.1 - version: 0.17.1(@rsbuild/core@1.4.11)(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) + version: 0.17.1(@rsbuild/core@1.4.11)(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) '@rsbuild/core': specifier: 1.4.11 version: 1.4.11 @@ -1434,6 +1434,15 @@ importers: specifier: 1.4.10 version: 1.4.10(@swc/helpers@0.5.17) + rspack/inline-const: + devDependencies: + '@rspack/cli': + specifier: 1.5.0-beta.0 + version: 1.5.0-beta.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17)) + '@rspack/core': + specifier: 1.5.0-beta.0 + version: 1.5.0-beta.0(@swc/helpers@0.5.17) + rspack/javascript-api: devDependencies: '@rspack/core': @@ -6067,6 +6076,11 @@ packages: cpu: [arm64] os: [darwin] + '@rspack/binding-darwin-arm64@1.5.0-beta.0': + resolution: {integrity: sha512-P9m+DAZXulV6pgAmtdLubANCx4f/y6UJrNWy6sLFnVfSXAVbGvchoBcgb9LvyiNcVyVq8GZyGT8tggpi9lbhLA==} + cpu: [arm64] + os: [darwin] + '@rspack/binding-darwin-x64@1.3.12': resolution: {integrity: sha512-Sj4m+mCUxL7oCpdu7OmWT7fpBM7hywk5CM9RDc3D7StaBZbvNtNftafCrTZzTYKuZrKmemTh5SFzT5Tz7tf6GA==} cpu: [x64] @@ -6092,6 +6106,11 @@ packages: cpu: [x64] os: [darwin] + '@rspack/binding-darwin-x64@1.5.0-beta.0': + resolution: {integrity: sha512-I8XHkeK+fRGdQMXnrirZXLRKfqnN52C57zKhlY2/TxTW+4gVb8tqLD0gTrGDqUTlXACHjnhx3uwJ8XkyUlgFLw==} + cpu: [x64] + os: [darwin] + '@rspack/binding-linux-arm64-gnu@1.3.12': resolution: {integrity: sha512-7MuOxf3/Mhv4mgFdLTvgnt/J+VouNR65DEhorth+RZm3LEWojgoFEphSAMAvpvAOpYSS68Sw4SqsOZi719ia2w==} cpu: [arm64] @@ -6117,6 +6136,11 @@ packages: cpu: [arm64] os: [linux] + '@rspack/binding-linux-arm64-gnu@1.5.0-beta.0': + resolution: {integrity: sha512-6fotqE8ZXE4rvywS4wCuwNwd6XprzJxEZGhEW/MqGV2ut9L7oLCI071Cz/v3pBXBJTcuh0vDuwH4xQ2uCO8SnA==} + cpu: [arm64] + os: [linux] + '@rspack/binding-linux-arm64-musl@1.3.12': resolution: {integrity: sha512-s6KKj20T9Z1bA8caIjU6EzJbwyDo1URNFgBAlafCT2UC6yX7flstDJJ38CxZacA9A2P24RuQK2/jPSZpWrTUFA==} cpu: [arm64] @@ -6142,6 +6166,11 @@ packages: cpu: [arm64] os: [linux] + '@rspack/binding-linux-arm64-musl@1.5.0-beta.0': + resolution: {integrity: sha512-5u34Y3mIaqV8OPc1ojFTik+3spzRi+72/0IUgdjNfZEBSkqBHQJG/Pib5CIe6161yGNl/FF11KH/3DlK0uxaPA==} + cpu: [arm64] + os: [linux] + '@rspack/binding-linux-x64-gnu@1.3.12': resolution: {integrity: sha512-0w/sRREYbRgHgWvs2uMEJSLfvzbZkPHUg6CMcYQGNVK6axYRot6jPyKetyFYA9pR5fB5rsXegpnFaZaVrRIK2g==} cpu: [x64] @@ -6167,6 +6196,11 @@ packages: cpu: [x64] os: [linux] + '@rspack/binding-linux-x64-gnu@1.5.0-beta.0': + resolution: {integrity: sha512-lV6Ni73T+0owXi56iSgEiRQcqczvm3UNHC8vfhTXJE6gyh+72t9jL6AoEfEm2vlxwZyAW2etQrplci6leshKBw==} + cpu: [x64] + os: [linux] + '@rspack/binding-linux-x64-musl@1.3.12': resolution: {integrity: sha512-jEdxkPymkRxbijDRsBGdhopcbGXiXDg59lXqIRkVklqbDmZ/O6DHm7gImmlx5q9FoWbz0gqJuOKBz4JqWxjWVA==} cpu: [x64] @@ -6192,6 +6226,11 @@ packages: cpu: [x64] os: [linux] + '@rspack/binding-linux-x64-musl@1.5.0-beta.0': + resolution: {integrity: sha512-T9ik/8Eu2br8sOftAOXbMvgrBLZeiev9o/XnQw+MygnA4wczlSfWF22eJwlhssk4y5H1MPlkE8QMVBRIJrwrDw==} + cpu: [x64] + os: [linux] + '@rspack/binding-wasm32-wasi@1.4.10': resolution: {integrity: sha512-lk647+Ob3yvVS2FgW0vCfo/gz9h0Q7v9HGBFcsD1uW0/tSqXMa2s9ZvIn+B7S9tRgIoosXEAuq8NeCXKGWVj5Q==} cpu: [wasm32] @@ -6208,6 +6247,10 @@ packages: resolution: {integrity: sha512-yWd5llZHBCsA0S5W0UGuXdQQ5zkZC4PQbOQS7XiblBII9RIMZZKJV/3AsYAHUeskTBPnwYMQsm8QCV52BNAE9A==} cpu: [wasm32] + '@rspack/binding-wasm32-wasi@1.5.0-beta.0': + resolution: {integrity: sha512-7wCc99kG6hWGt1hs4vrJbPK7GD2diHmoae4lBY7kcNaoP0ZpTKiICG+yCrTHmSyNlU6wbxsXGdJAabX6h4Brig==} + cpu: [wasm32] + '@rspack/binding-win32-arm64-msvc@1.3.12': resolution: {integrity: sha512-ZRvUCb3TDLClAqcTsl/o9UdJf0B5CgzAxgdbnYJbldyuyMeTUB4jp20OfG55M3C2Nute2SNhu2bOOp9Se5Ongw==} cpu: [arm64] @@ -6233,6 +6276,11 @@ packages: cpu: [arm64] os: [win32] + '@rspack/binding-win32-arm64-msvc@1.5.0-beta.0': + resolution: {integrity: sha512-3A3cN7wno4vY09NH/wrA0tzYRsv+Q1Kv5p/kXrnFLeQ8ZJ1MFyN8AFHt3UW9FO6TniJrxxJPmYd7D2szNeXujw==} + cpu: [arm64] + os: [win32] + '@rspack/binding-win32-ia32-msvc@1.3.12': resolution: {integrity: sha512-1TKPjuXStPJr14f3ZHuv40Xc/87jUXx10pzVtrPnw+f3hckECHrbYU/fvbVzZyuXbsXtkXpYca6ygCDRJAoNeQ==} cpu: [ia32] @@ -6258,6 +6306,11 @@ packages: cpu: [ia32] os: [win32] + '@rspack/binding-win32-ia32-msvc@1.5.0-beta.0': + resolution: {integrity: sha512-0QFpKQiH+MdyR4ILA6PP074YVkLhfVAakPLUe3UTOuBRXnN/C/i7Xop+6raWqrMmxU2qzgFi5N2zf0plYPbvnw==} + cpu: [ia32] + os: [win32] + '@rspack/binding-win32-x64-msvc@1.3.12': resolution: {integrity: sha512-lCR0JfnYKpV+a6r2A2FdxyUKUS4tajePgpPJN5uXDgMGwrDtRqvx+d0BHhwjFudQVJq9VVbRaL89s2MQ6u+xYw==} cpu: [x64] @@ -6283,6 +6336,11 @@ packages: cpu: [x64] os: [win32] + '@rspack/binding-win32-x64-msvc@1.5.0-beta.0': + resolution: {integrity: sha512-99pXkrDCmuFe8B2AuPa4g/tu+A+GYQ2VcxOvbOrw5N4Y5ANhQJYGhxxYyZ7ijS7zyXP8SJ7PTf1mMeM8ghIzmQ==} + cpu: [x64] + os: [win32] + '@rspack/binding@1.3.12': resolution: {integrity: sha512-4Ic8lV0+LCBfTlH5aIOujIRWZOtgmG223zC4L3o8WY/+ESAgpdnK6lSSMfcYgRanYLAy3HOmFIp20jwskMpbAg==} @@ -6298,6 +6356,9 @@ packages: '@rspack/binding@1.4.9': resolution: {integrity: sha512-9EY8OMCNZrwCupQMZccMgrTxWGUQvZGFrLFw/rxfTt+uT4fS4CAbNwHVFxsnROaRd+EE6EXfUpUYu66j6vd4qA==} + '@rspack/binding@1.5.0-beta.0': + resolution: {integrity: sha512-MzzSb/Ruq2fPBUfuhbezhD4V7Pg28n3otRZ7uNmeWfpvce3FtsJyyds92r99+rxwlb0Md31Zdj/NLJtpyFWBLA==} + '@rspack/cli@1.4.10': resolution: {integrity: sha512-qWnBEN1pthP8wlgR6qOw+L8wXXUo3/B9EgD+XDavK6bKxwWlUvc02u2ERKvyaVyBctus708/M4dj9uxNH5xUDg==} hasBin: true @@ -6310,6 +6371,12 @@ packages: peerDependencies: '@rspack/core': ^1.0.0-alpha || ^1.x + '@rspack/cli@1.5.0-beta.0': + resolution: {integrity: sha512-PHbbiss3/AQ0R7kdxi8kU0EFxoLjVkiU768pKkLvSo7tfZa6KbOIFJZF1qhbCktyOu6J88lEqdQl68CMbSVilg==} + hasBin: true + peerDependencies: + '@rspack/core': ^1.0.0-alpha || ^1.x + '@rspack/core@1.3.12': resolution: {integrity: sha512-mAPmV4LPPRgxpouUrGmAE4kpF1NEWJGyM5coebsjK/zaCMSjw3mkdxiU2b5cO44oIi0Ifv5iGkvwbdrZOvMyFA==} engines: {node: '>=16.0.0'} @@ -6355,6 +6422,15 @@ packages: '@swc/helpers': optional: true + '@rspack/core@1.5.0-beta.0': + resolution: {integrity: sha512-9Vlk2Na6p4EEvBTXp8SFWC8T7CeQ8vGV+fvtvtK4xLuqutHZ7UDifaIVybJ44/Oi4AFQpJeBiBr5u8/JSsa2pQ==} + engines: {node: '>=18.12.0'} + peerDependencies: + '@swc/helpers': '>=0.5.1' + peerDependenciesMeta: + '@swc/helpers': + optional: true + '@rspack/dev-server@1.1.3': resolution: {integrity: sha512-jWPeyiZiGpbLYGhwHvwxhaa4rsr8CQvsWkWslqeMLb2uXwmyy3UWjUR1q+AhAPnf0gs3lZoFZ1hjBQVecHKUvg==} engines: {node: '>= 18.12.0'} @@ -17843,7 +17919,7 @@ snapshots: - supports-color - utf-8-validate - '@module-federation/enhanced@0.17.1(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2)': + '@module-federation/enhanced@0.17.1(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2)': dependencies: '@module-federation/bridge-react-webpack-plugin': 0.17.1 '@module-federation/cli': 0.17.1(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3)) @@ -17853,7 +17929,7 @@ snapshots: '@module-federation/inject-external-runtime-core-plugin': 0.17.1(@module-federation/runtime-tools@0.17.1) '@module-federation/managers': 0.17.1 '@module-federation/manifest': 0.17.1(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3)) - '@module-federation/rspack': 0.17.1(@rspack/core@1.4.11(@swc/helpers@0.5.17))(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3)) + '@module-federation/rspack': 0.17.1(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3)) '@module-federation/runtime-tools': 0.17.1 '@module-federation/sdk': 0.17.1 btoa: 1.2.1 @@ -17905,9 +17981,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/node@2.7.10(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2)': + '@module-federation/node@2.7.10(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2)': dependencies: - '@module-federation/enhanced': 0.17.1(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) + '@module-federation/enhanced': 0.17.1(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) '@module-federation/runtime': 0.17.1 '@module-federation/sdk': 0.17.1 btoa: 1.2.1 @@ -17926,10 +18002,10 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/rsbuild-plugin@0.17.1(@rsbuild/core@1.4.11)(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2)': + '@module-federation/rsbuild-plugin@0.17.1(@rsbuild/core@1.4.11)(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2)': dependencies: - '@module-federation/enhanced': 0.17.1(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) - '@module-federation/node': 2.7.10(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) + '@module-federation/enhanced': 0.17.1(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) + '@module-federation/node': 2.7.10(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))(webpack@5.100.2) '@module-federation/sdk': 0.17.1 fs-extra: 11.3.0 optionalDependencies: @@ -17947,7 +18023,7 @@ snapshots: - vue-tsc - webpack - '@module-federation/rspack@0.17.1(@rspack/core@1.4.11(@swc/helpers@0.5.17))(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))': + '@module-federation/rspack@0.17.1(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3))': dependencies: '@module-federation/bridge-react-webpack-plugin': 0.17.1 '@module-federation/dts-plugin': 0.17.1(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3)) @@ -17956,7 +18032,7 @@ snapshots: '@module-federation/manifest': 0.17.1(typescript@5.8.3)(vue-tsc@1.8.27(typescript@5.8.3)) '@module-federation/runtime-tools': 0.17.1 '@module-federation/sdk': 0.17.1 - '@rspack/core': 1.4.11(@swc/helpers@0.5.17) + '@rspack/core': 1.5.0-beta.0(@swc/helpers@0.5.17) btoa: 1.2.1 optionalDependencies: typescript: 5.8.3 @@ -19048,6 +19124,9 @@ snapshots: '@rspack/binding-darwin-arm64@1.4.9': optional: true + '@rspack/binding-darwin-arm64@1.5.0-beta.0': + optional: true + '@rspack/binding-darwin-x64@1.3.12': optional: true @@ -19063,6 +19142,9 @@ snapshots: '@rspack/binding-darwin-x64@1.4.9': optional: true + '@rspack/binding-darwin-x64@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-arm64-gnu@1.3.12': optional: true @@ -19078,6 +19160,9 @@ snapshots: '@rspack/binding-linux-arm64-gnu@1.4.9': optional: true + '@rspack/binding-linux-arm64-gnu@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-arm64-musl@1.3.12': optional: true @@ -19093,6 +19178,9 @@ snapshots: '@rspack/binding-linux-arm64-musl@1.4.9': optional: true + '@rspack/binding-linux-arm64-musl@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-x64-gnu@1.3.12': optional: true @@ -19108,6 +19196,9 @@ snapshots: '@rspack/binding-linux-x64-gnu@1.4.9': optional: true + '@rspack/binding-linux-x64-gnu@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-x64-musl@1.3.12': optional: true @@ -19123,6 +19214,9 @@ snapshots: '@rspack/binding-linux-x64-musl@1.4.9': optional: true + '@rspack/binding-linux-x64-musl@1.5.0-beta.0': + optional: true + '@rspack/binding-wasm32-wasi@1.4.10': dependencies: '@napi-rs/wasm-runtime': 1.0.1 @@ -19143,6 +19237,11 @@ snapshots: '@napi-rs/wasm-runtime': 1.0.1 optional: true + '@rspack/binding-wasm32-wasi@1.5.0-beta.0': + dependencies: + '@napi-rs/wasm-runtime': 1.0.1 + optional: true + '@rspack/binding-win32-arm64-msvc@1.3.12': optional: true @@ -19158,6 +19257,9 @@ snapshots: '@rspack/binding-win32-arm64-msvc@1.4.9': optional: true + '@rspack/binding-win32-arm64-msvc@1.5.0-beta.0': + optional: true + '@rspack/binding-win32-ia32-msvc@1.3.12': optional: true @@ -19173,6 +19275,9 @@ snapshots: '@rspack/binding-win32-ia32-msvc@1.4.9': optional: true + '@rspack/binding-win32-ia32-msvc@1.5.0-beta.0': + optional: true + '@rspack/binding-win32-x64-msvc@1.3.12': optional: true @@ -19188,6 +19293,9 @@ snapshots: '@rspack/binding-win32-x64-msvc@1.4.9': optional: true + '@rspack/binding-win32-x64-msvc@1.5.0-beta.0': + optional: true + '@rspack/binding@1.3.12': optionalDependencies: '@rspack/binding-darwin-arm64': 1.3.12 @@ -19252,6 +19360,19 @@ snapshots: '@rspack/binding-win32-ia32-msvc': 1.4.9 '@rspack/binding-win32-x64-msvc': 1.4.9 + '@rspack/binding@1.5.0-beta.0': + optionalDependencies: + '@rspack/binding-darwin-arm64': 1.5.0-beta.0 + '@rspack/binding-darwin-x64': 1.5.0-beta.0 + '@rspack/binding-linux-arm64-gnu': 1.5.0-beta.0 + '@rspack/binding-linux-arm64-musl': 1.5.0-beta.0 + '@rspack/binding-linux-x64-gnu': 1.5.0-beta.0 + '@rspack/binding-linux-x64-musl': 1.5.0-beta.0 + '@rspack/binding-wasm32-wasi': 1.5.0-beta.0 + '@rspack/binding-win32-arm64-msvc': 1.5.0-beta.0 + '@rspack/binding-win32-ia32-msvc': 1.5.0-beta.0 + '@rspack/binding-win32-x64-msvc': 1.5.0-beta.0 + '@rspack/cli@1.4.10(@rspack/core@1.4.10(@swc/helpers@0.5.17))': dependencies: '@discoveryjs/json-ext': 0.5.7 @@ -19352,6 +19473,26 @@ snapshots: - webpack - webpack-cli + '@rspack/cli@1.5.0-beta.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))': + dependencies: + '@discoveryjs/json-ext': 0.5.7 + '@rspack/core': 1.5.0-beta.0(@swc/helpers@0.5.17) + '@rspack/dev-server': 1.1.3(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17)) + colorette: 2.0.20 + exit-hook: 4.0.0 + interpret: 3.1.1 + rechoir: 0.8.0 + webpack-bundle-analyzer: 4.10.2 + yargs: 17.7.2 + transitivePeerDependencies: + - '@types/express' + - bufferutil + - debug + - supports-color + - utf-8-validate + - webpack + - webpack-cli + '@rspack/core@1.3.12(@swc/helpers@0.5.17)': dependencies: '@module-federation/runtime-tools': 0.14.0 @@ -19393,6 +19534,14 @@ snapshots: optionalDependencies: '@swc/helpers': 0.5.17 + '@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17)': + dependencies: + '@module-federation/runtime-tools': 0.17.1 + '@rspack/binding': 1.5.0-beta.0 + '@rspack/lite-tapable': 1.0.1 + optionalDependencies: + '@swc/helpers': 0.5.17 + '@rspack/dev-server@1.1.3(@rspack/core@1.4.10(@swc/helpers@0.5.17))': dependencies: '@rspack/core': 1.4.10(@swc/helpers@0.5.17) @@ -19478,6 +19627,23 @@ snapshots: - webpack - webpack-cli + '@rspack/dev-server@1.1.3(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))': + dependencies: + '@rspack/core': 1.5.0-beta.0(@swc/helpers@0.5.17) + chokidar: 3.6.0 + http-proxy-middleware: 2.0.9(@types/express@4.17.21) + p-retry: 6.2.0 + webpack-dev-server: 5.2.2(webpack@5.100.2(@swc/core@1.13.2(@swc/helpers@0.5.17))) + ws: 8.18.0 + transitivePeerDependencies: + - '@types/express' + - bufferutil + - debug + - supports-color + - utf-8-validate + - webpack + - webpack-cli + '@rspack/lite-tapable@1.0.1': {} '@rspack/plugin-preact-refresh@1.1.2(@prefresh/core@1.5.5(preact@10.26.9))(@prefresh/utils@1.2.1)': diff --git a/rspack/inline-const/package.json b/rspack/inline-const/package.json index cde7523d4..22c46f03c 100644 --- a/rspack/inline-const/package.json +++ b/rspack/inline-const/package.json @@ -8,7 +8,7 @@ "build": "rspack build" }, "devDependencies": { - "@rspack/cli": "latest", - "@rspack/core": "latest" + "@rspack/cli": "1.5.0-beta.0", + "@rspack/core": "1.5.0-beta.0" } }