diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 787b957a1..722b732b8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,10 +111,10 @@ importers: devDependencies: '@module-federation/enhanced': specifier: ^0.18.0 - version: 0.18.0(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) + version: 0.18.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) '@module-federation/rsbuild-plugin': specifier: ^0.18.0 - version: 0.18.0(@rsbuild/core@1.4.15)(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) + version: 0.18.0(@rsbuild/core@1.4.15)(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) '@rsbuild/core': specifier: 1.4.15 version: 1.4.15 @@ -142,10 +142,10 @@ importers: devDependencies: '@module-federation/enhanced': specifier: ^0.18.0 - version: 0.18.0(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) + version: 0.18.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) '@module-federation/rsbuild-plugin': specifier: ^0.18.0 - version: 0.18.0(@rsbuild/core@1.4.15)(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) + version: 0.18.0(@rsbuild/core@1.4.15)(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) '@rsbuild/core': specifier: 1.4.15 version: 1.4.15 @@ -446,7 +446,7 @@ importers: version: 19.1.7(@types/react@19.1.9) ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.13.3(@swc/helpers@0.5.17))(@types/node@24.1.0)(typescript@5.9.2) + version: 10.9.2(@swc/core@1.13.3(@swc/helpers@0.5.17))(@types/node@24.2.1)(typescript@5.9.2) typescript: specifier: ^5.9.2 version: 5.9.2 @@ -796,7 +796,7 @@ importers: version: 5.9.2 unplugin-stylex: specifier: ^0.5.4 - version: 0.5.4(@stylexjs/stylex@0.15.2)(rollup@4.46.2)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)) + version: 0.5.4(@stylexjs/stylex@0.15.2)(rollup@4.46.2)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.2.1)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)) rsbuild/svelte: dependencies: @@ -1104,7 +1104,7 @@ importers: version: 1.4.11(@swc/helpers@0.5.17) ts-node: specifier: 10.9.2 - version: 10.9.2(@swc/core@1.13.3(@swc/helpers@0.5.17))(@types/node@24.1.0)(typescript@5.9.2) + version: 10.9.2(@swc/core@1.13.3(@swc/helpers@0.5.17))(@types/node@24.2.1)(typescript@5.9.2) typescript: specifier: ^5.9.2 version: 5.9.2 @@ -1434,6 +1434,15 @@ importers: specifier: 1.4.11 version: 1.4.11(@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))(@types/express@4.17.21)(webpack@5.101.0) + '@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': @@ -5953,6 +5962,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] @@ -5968,6 +5982,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] @@ -5983,6 +6002,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] @@ -5998,6 +6022,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] @@ -6013,6 +6042,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] @@ -6028,6 +6062,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.11': resolution: {integrity: sha512-hiYxHZjaZ17wQtXyLCK0IdtOvMWreGVTiGsaHCxyeT+SldDG+r16bXNjmlqfZsjlfl1mkAqKz1dg+mMX28OTqw==} cpu: [wasm32] @@ -6036,6 +6075,10 @@ packages: resolution: {integrity: sha512-LRyln0jg2FblwFQg+0lPVc/bvDeo3A3EVWQtsTtOwjb4cjAG/Zqo5Q0VobaJTKgBOF9eAHTo9IL92SSj433+Eg==} 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] @@ -6051,6 +6094,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] @@ -6066,6 +6114,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] @@ -6081,6 +6134,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==} @@ -6090,12 +6148,21 @@ packages: '@rspack/binding@1.4.5': resolution: {integrity: sha512-hO7DrZMMOyzwK7EEYfHMJmWhsNjeYLr39pEnXOWeuCCcwus6e/QNSSf2m/2mSFf0JeINwQqHkA1JvJEZ5JSj6g==} + '@rspack/binding@1.5.0-beta.0': + resolution: {integrity: sha512-MzzSb/Ruq2fPBUfuhbezhD4V7Pg28n3otRZ7uNmeWfpvce3FtsJyyds92r99+rxwlb0Md31Zdj/NLJtpyFWBLA==} + '@rspack/cli@1.4.11': resolution: {integrity: sha512-21/EF/gdtTt03LYtXDFFE9rJNUfpxMtIszGgjfULal3IgYHAjo7mKPp6QlPQLSMi/26+TYHa9WZUrnHf8GUIJg==} hasBin: true 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'} @@ -6123,6 +6190,21 @@ 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'} + peerDependencies: + '@rspack/core': '*' + '@rspack/dev-server@1.1.4': resolution: {integrity: sha512-kGHYX2jYf3ZiHwVl0aUEPBOBEIG1aWleCDCAi+Jg32KUu3qr/zDUpCEd0wPuHfLEgk0X0xAEYCS6JMO7nBStNQ==} engines: {node: '>= 18.12.0'} @@ -17356,7 +17438,7 @@ snapshots: - supports-color - utf-8-validate - '@module-federation/enhanced@0.18.0(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0)': + '@module-federation/enhanced@0.18.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0)': dependencies: '@module-federation/bridge-react-webpack-plugin': 0.18.0 '@module-federation/cli': 0.18.0(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2)) @@ -17366,7 +17448,7 @@ snapshots: '@module-federation/inject-external-runtime-core-plugin': 0.18.0(@module-federation/runtime-tools@0.18.0) '@module-federation/managers': 0.18.0 '@module-federation/manifest': 0.18.0(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2)) - '@module-federation/rspack': 0.18.0(@rspack/core@1.4.11(@swc/helpers@0.5.17))(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2)) + '@module-federation/rspack': 0.18.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2)) '@module-federation/runtime-tools': 0.18.0 '@module-federation/sdk': 0.18.0 btoa: 1.2.1 @@ -17418,9 +17500,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/node@2.7.11(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0)': + '@module-federation/node@2.7.11(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0)': dependencies: - '@module-federation/enhanced': 0.18.0(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) + '@module-federation/enhanced': 0.18.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) '@module-federation/runtime': 0.18.0 '@module-federation/sdk': 0.18.0 btoa: 1.2.1 @@ -17439,10 +17521,10 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/rsbuild-plugin@0.18.0(@rsbuild/core@1.4.15)(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0)': + '@module-federation/rsbuild-plugin@0.18.0(@rsbuild/core@1.4.15)(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0)': dependencies: - '@module-federation/enhanced': 0.18.0(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) - '@module-federation/node': 2.7.11(@rspack/core@1.4.11(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) + '@module-federation/enhanced': 0.18.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) + '@module-federation/node': 2.7.11(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))(webpack@5.101.0) '@module-federation/sdk': 0.18.0 fs-extra: 11.3.0 optionalDependencies: @@ -17460,7 +17542,7 @@ snapshots: - vue-tsc - webpack - '@module-federation/rspack@0.18.0(@rspack/core@1.4.11(@swc/helpers@0.5.17))(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))': + '@module-federation/rspack@0.18.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2))': dependencies: '@module-federation/bridge-react-webpack-plugin': 0.18.0 '@module-federation/dts-plugin': 0.18.0(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2)) @@ -17469,7 +17551,7 @@ snapshots: '@module-federation/manifest': 0.18.0(typescript@5.9.2)(vue-tsc@1.8.27(typescript@5.9.2)) '@module-federation/runtime-tools': 0.18.0 '@module-federation/sdk': 0.18.0 - '@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.9.2 @@ -18416,6 +18498,9 @@ snapshots: '@rspack/binding-darwin-arm64@1.4.5': optional: true + '@rspack/binding-darwin-arm64@1.5.0-beta.0': + optional: true + '@rspack/binding-darwin-x64@1.3.12': optional: true @@ -18425,6 +18510,9 @@ snapshots: '@rspack/binding-darwin-x64@1.4.5': optional: true + '@rspack/binding-darwin-x64@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-arm64-gnu@1.3.12': optional: true @@ -18434,6 +18522,9 @@ snapshots: '@rspack/binding-linux-arm64-gnu@1.4.5': optional: true + '@rspack/binding-linux-arm64-gnu@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-arm64-musl@1.3.12': optional: true @@ -18443,6 +18534,9 @@ snapshots: '@rspack/binding-linux-arm64-musl@1.4.5': optional: true + '@rspack/binding-linux-arm64-musl@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-x64-gnu@1.3.12': optional: true @@ -18452,6 +18546,9 @@ snapshots: '@rspack/binding-linux-x64-gnu@1.4.5': optional: true + '@rspack/binding-linux-x64-gnu@1.5.0-beta.0': + optional: true + '@rspack/binding-linux-x64-musl@1.3.12': optional: true @@ -18461,6 +18558,9 @@ snapshots: '@rspack/binding-linux-x64-musl@1.4.5': optional: true + '@rspack/binding-linux-x64-musl@1.5.0-beta.0': + optional: true + '@rspack/binding-wasm32-wasi@1.4.11': dependencies: '@napi-rs/wasm-runtime': 1.0.1 @@ -18471,6 +18571,11 @@ snapshots: '@napi-rs/wasm-runtime': 0.2.11 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 @@ -18480,6 +18585,9 @@ snapshots: '@rspack/binding-win32-arm64-msvc@1.4.5': optional: true + '@rspack/binding-win32-arm64-msvc@1.5.0-beta.0': + optional: true + '@rspack/binding-win32-ia32-msvc@1.3.12': optional: true @@ -18489,6 +18597,9 @@ snapshots: '@rspack/binding-win32-ia32-msvc@1.4.5': optional: true + '@rspack/binding-win32-ia32-msvc@1.5.0-beta.0': + optional: true + '@rspack/binding-win32-x64-msvc@1.3.12': optional: true @@ -18498,6 +18609,9 @@ snapshots: '@rspack/binding-win32-x64-msvc@1.4.5': 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 @@ -18536,6 +18650,19 @@ snapshots: '@rspack/binding-win32-ia32-msvc': 1.4.5 '@rspack/binding-win32-x64-msvc': 1.4.5 + '@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.11(@rspack/core@1.4.11(@swc/helpers@0.5.17))(webpack-cli@5.1.4)(webpack@5.101.0)': dependencies: '@discoveryjs/json-ext': 0.5.7 @@ -18596,6 +18723,26 @@ snapshots: - webpack - webpack-cli + '@rspack/cli@1.5.0-beta.0(@rspack/core@1.5.0-beta.0(@swc/helpers@0.5.17))(@types/express@4.17.21)(webpack@5.101.0)': + 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))(@types/express@4.17.21)(webpack@5.101.0) + 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 @@ -18621,6 +18768,31 @@ 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.5.0-beta.0(@swc/helpers@0.5.17))(@types/express@4.17.21)(webpack@5.101.0)': + 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-cli@5.1.4)(webpack@5.101.0) + ws: 8.18.0 + transitivePeerDependencies: + - '@types/express' + - bufferutil + - debug + - supports-color + - utf-8-validate + - webpack + - webpack-cli + '@rspack/dev-server@1.1.4(@rspack/core@1.4.11(@swc/helpers@0.5.17))(@types/express@4.17.21)(webpack@5.101.0)': dependencies: '@rspack/core': 1.4.11(@swc/helpers@0.5.17) @@ -19508,7 +19680,6 @@ snapshots: '@types/node@24.2.1': dependencies: undici-types: 7.10.0 - optional: true '@types/parse-json@4.0.2': {} @@ -19577,7 +19748,7 @@ snapshots: '@types/webpack@5.28.5(webpack-cli@4.10.0)': dependencies: - '@types/node': 24.2.1 + '@types/node': 22.17.1 tapable: 2.2.2 webpack: 5.101.0(webpack-cli@4.10.0) transitivePeerDependencies: @@ -19828,7 +19999,7 @@ snapshots: dependencies: vue: 3.5.8(typescript@5.9.2) - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.2.1)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -19843,7 +20014,7 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.2.1)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) transitivePeerDependencies: - supports-color @@ -19855,13 +20026,13 @@ snapshots: chai: 5.2.1 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(vite@7.1.1(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1))': + '@vitest/mocker@3.2.4(vite@7.1.1(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - vite: 7.1.1(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) + vite: 7.1.1(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) '@vitest/pretty-format@3.2.4': dependencies: @@ -28160,26 +28331,6 @@ snapshots: optionalDependencies: '@swc/core': 1.13.3(@swc/helpers@0.5.17) - ts-node@10.9.2(@swc/core@1.13.3(@swc/helpers@0.5.17))(@types/node@24.1.0)(typescript@5.9.2): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.9 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 24.1.0 - acorn: 8.14.0 - acorn-walk: 8.3.3 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.9.2 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - optionalDependencies: - '@swc/core': 1.13.3(@swc/helpers@0.5.17) - ts-node@10.9.2(@swc/core@1.13.3(@swc/helpers@0.5.17))(@types/node@24.2.1)(typescript@5.9.2): dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -28199,7 +28350,6 @@ snapshots: yn: 3.1.1 optionalDependencies: '@swc/core': 1.13.3(@swc/helpers@0.5.17) - optional: true tsconfig-paths-webpack-plugin@4.2.0: dependencies: @@ -28334,8 +28484,7 @@ snapshots: undici-types@6.21.0: {} - undici-types@7.10.0: - optional: true + undici-types@7.10.0: {} undici-types@7.8.0: {} @@ -28485,7 +28634,7 @@ snapshots: transitivePeerDependencies: - rollup - unplugin-stylex@0.5.4(@stylexjs/stylex@0.15.2)(rollup@4.46.2)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)): + unplugin-stylex@0.5.4(@stylexjs/stylex@0.15.2)(rollup@4.46.2)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.2.1)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)): dependencies: '@babel/core': 7.28.0 '@babel/plugin-syntax-flow': 7.27.1(@babel/core@7.28.0) @@ -28495,7 +28644,7 @@ snapshots: '@stylexjs/babel-plugin': 0.12.0 '@stylexjs/stylex': 0.15.2 '@types/node': 24.1.0 - '@vitest/coverage-v8': 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)) + '@vitest/coverage-v8': 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.2.1)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)) unplugin: 1.16.1 transitivePeerDependencies: - '@vitest/browser' @@ -28674,13 +28823,13 @@ snapshots: unist-util-stringify-position: 4.0.0 vfile-message: 4.0.2 - vite-node@3.2.4(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1): + vite-node@3.2.4(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1): dependencies: cac: 6.7.14 debug: 4.4.1 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.1.1(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) + vite: 7.1.1(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) transitivePeerDependencies: - '@types/node' - jiti @@ -28695,7 +28844,7 @@ snapshots: - tsx - yaml - vite@7.1.1(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1): + vite@7.1.1(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1): dependencies: esbuild: 0.25.8 fdir: 6.4.6(picomatch@4.0.3) @@ -28704,7 +28853,7 @@ snapshots: rollup: 4.46.2 tinyglobby: 0.2.14 optionalDependencies: - '@types/node': 24.1.0 + '@types/node': 24.2.1 fsevents: 2.3.3 jiti: 2.5.1 less: 4.4.0 @@ -28716,11 +28865,11 @@ snapshots: tsx: 4.19.2 yaml: 2.8.1 - vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.2.1)(jiti@2.5.1)(jsdom@20.0.3)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@7.1.1(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)) + '@vitest/mocker': 3.2.4(vite@7.1.1(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -28738,12 +28887,12 @@ snapshots: tinyglobby: 0.2.14 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.1.1(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) - vite-node: 3.2.4(@types/node@24.1.0)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) + vite: 7.1.1(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) + vite-node: 3.2.4(@types/node@24.2.1)(jiti@2.5.1)(less@4.4.0)(lightningcss@1.30.1)(sass-embedded@1.88.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.37.0)(tsx@4.19.2)(yaml@2.8.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 24.1.0 + '@types/node': 24.2.1 jsdom: 20.0.3 transitivePeerDependencies: - jiti diff --git a/rspack/inline-const/package.json b/rspack/inline-const/package.json new file mode 100644 index 000000000..22c46f03c --- /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": "1.5.0-beta.0", + "@rspack/core": "1.5.0-beta.0" + } +} 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';