From 741ad729f67d97008047e8ae113cb9936db84895 Mon Sep 17 00:00:00 2001 From: Hana Date: Mon, 9 Dec 2024 20:23:39 +0800 Subject: [PATCH 1/6] perf: init --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- crates/rspack_binding_values/src/stats.rs | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e16a7cc6ad3d..841fb3f7d7fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4860,11 +4860,11 @@ dependencies = [ [[package]] name = "rspack_sources" version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d52f5aa6afd8cc49a3e3f796a00918d11d97ed5043d0881165d8fc1aca1ae8c" +source = "git+https://github.com/web-infra-dev/rspack-sources?rev=b08c1b724de7278eca7992e5053caecd2e7f559b#b08c1b724de7278eca7992e5053caecd2e7f559b" dependencies = [ "dashmap 5.5.3", "dyn-clone", + "itertools 0.13.0", "memchr", "rustc-hash 1.1.0", "serde", diff --git a/Cargo.toml b/Cargo.toml index 184ab32cef4e..81498a5cc8d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,7 @@ rayon = { version = "1.10.0" } regex = { version = "1.11.1" } ropey = "1.6.1" rspack_resolver = { version = "0.3.5", features = ["package_json_raw_json_api"] } -rspack_sources = { version = "=0.3.6" } +rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources", rev = "b08c1b724de7278eca7992e5053caecd2e7f559b" } rustc-hash = { version = "2.1.0" } serde = { version = "1.0.215" } serde_json = { version = "1.0.133" } diff --git a/crates/rspack_binding_values/src/stats.rs b/crates/rspack_binding_values/src/stats.rs index b1ac4a3c6e5c..8cfdf4b55bba 100644 --- a/crates/rspack_binding_values/src/stats.rs +++ b/crates/rspack_binding_values/src/stats.rs @@ -3,7 +3,7 @@ use std::cell::RefCell; use napi_derive::napi; use rspack_collections::Identifier; use rspack_core::{ - rspack_sources::{RawSource, Source}, + rspack_sources::{RawBufferSource, RawSource, Source}, EntrypointsStatsOption, ExtendedStatsOptions, Stats, StatsChunk, StatsModule, StatsUsedExports, }; use rspack_napi::{ @@ -503,6 +503,9 @@ impl TryFrom> for JsStatsModule { fn try_from(stats: StatsModule) -> std::result::Result { let source = stats.source.map(|source| { + if let Some(raw_source) = source.as_any().downcast_ref::() { + return JsStatsModuleSource::B(Buffer::from(raw_source.buffer().to_vec())); + } if let Some(raw_source) = source.as_any().downcast_ref::() { if raw_source.is_buffer() { return JsStatsModuleSource::B(Buffer::from(raw_source.buffer().to_vec())); From 5aced40f74ad99eca1e043b64c777a6133fe353e Mon Sep 17 00:00:00 2001 From: Hana Date: Wed, 11 Dec 2024 16:09:59 +0800 Subject: [PATCH 2/6] test: snapshot --- .../tests/__snapshots__/StatsAPI.test.js.snap | 14 +++++++------- .../tests/__snapshots__/StatsOutput.test.js.snap | 2 +- .../update-asset/hooks.snap.txt | 2 +- .../rspack-test-tools/tests/statsAPICases/basic.js | 2 +- .../tests/statsAPICases/chunks.js | 4 ++-- ...a3b3f$.css => async.$ae884e9ae01bc3c32ef3$.css} | 0 ...7a3b3f$.css => main.$ae884e9ae01bc3c32ef3$.css} | 0 .../cases/chunkFilename-fullhash/expected/main.js | 2 +- ...d093$.css => entryA.$bd5939485d4f3ec74c0d$.css} | 0 ...67d3$.css => entryB.$f4d423c146f6456d2f68$.css} | 0 ...ed55$.css => 1.main.$e35ecf2d8d9936705256$.css} | 0 ...d0ad$.css => 2.main.$e0e9bed01c7ef0b55991$.css} | 0 .../css-extract/cases/issue-6649/expected/main.js | 4 ++-- 13 files changed, 15 insertions(+), 15 deletions(-) rename tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/{async.$8354dce72f13f87a3b3f$.css => async.$ae884e9ae01bc3c32ef3$.css} (100%) rename tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/{main.$8354dce72f13f87a3b3f$.css => main.$ae884e9ae01bc3c32ef3$.css} (100%) rename tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/{entryA.$b3f8b9e790792482d093$.css => entryA.$bd5939485d4f3ec74c0d$.css} (100%) rename tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/{entryB.$8aa8deac17a40f6d67d3$.css => entryB.$f4d423c146f6456d2f68$.css} (100%) rename tests/plugin-test/css-extract/cases/contenthash/expected/{1.main.$07dbcc4134dc4aeaed55$.css => 1.main.$e35ecf2d8d9936705256$.css} (100%) rename tests/plugin-test/css-extract/cases/contenthash/expected/{2.main.$915651afb7b484c9d0ad$.css => 2.main.$e0e9bed01c7ef0b55991$.css} (100%) diff --git a/packages/rspack-test-tools/tests/__snapshots__/StatsAPI.test.js.snap b/packages/rspack-test-tools/tests/__snapshots__/StatsAPI.test.js.snap index 1708e318e1f5..fe20f1f9363d 100644 --- a/packages/rspack-test-tools/tests/__snapshots__/StatsAPI.test.js.snap +++ b/packages/rspack-test-tools/tests/__snapshots__/StatsAPI.test.js.snap @@ -49,7 +49,7 @@ Object { main.js, ], filteredModules: undefined, - hash: e856770ebb8c912f, + hash: 03ac15d52ac8f99a, id: 909, idHints: Array [], initial: true, @@ -173,7 +173,7 @@ Object { errorsCount: 0, filteredAssets: undefined, filteredModules: undefined, - hash: 41ef1cd36ef4fa77, + hash: 25fb71d3c0e584fa, modules: Array [ Object { assets: Array [], @@ -318,7 +318,7 @@ Object { main.js, ], filteredModules: undefined, - hash: b5dfb9a34e0706a6, + hash: 24d8ec2f7276d780, id: 909, idHints: Array [], initial: true, @@ -685,7 +685,7 @@ Object { errorsCount: 0, filteredAssets: undefined, filteredModules: undefined, - hash: 8994cd698728ec44, + hash: c9ae05e2791de1df, modules: Array [ Object { assets: Array [], @@ -1449,7 +1449,7 @@ Object { files: Array [ main.js, ], - hash: e856770ebb8c912f, + hash: 03ac15d52ac8f99a, id: 909, idHints: Array [], initial: true, @@ -1589,7 +1589,7 @@ Object { main.js, ], filteredModules: undefined, - hash: 66b6e930b53470c9, + hash: 9c0983c99ff070fd, id: 909, idHints: Array [], initial: true, @@ -1937,7 +1937,7 @@ exports.c = require("./c?c=3");, errorsCount: 0, filteredAssets: undefined, filteredModules: undefined, - hash: a530f14a269b849b, + hash: 7973d0469464a339, modules: Array [ Object { assets: Array [], diff --git a/packages/rspack-test-tools/tests/__snapshots__/StatsOutput.test.js.snap b/packages/rspack-test-tools/tests/__snapshots__/StatsOutput.test.js.snap index 8612bff39271..b951913a4845 100644 --- a/packages/rspack-test-tools/tests/__snapshots__/StatsOutput.test.js.snap +++ b/packages/rspack-test-tools/tests/__snapshots__/StatsOutput.test.js.snap @@ -59,7 +59,7 @@ runtime modules 1.61 KiB [no exports] [used exports unknown] -Rspack compiled successfully (f818dd8a56a84b74) +Rspack compiled successfully (4d5fa5d34acd771d) `; exports[`statsOutput statsOutput/builtin-swc-loader-parse-error should print correct stats for 1`] = ` diff --git a/packages/rspack-test-tools/tests/hookCases/compilation#processAssets/update-asset/hooks.snap.txt b/packages/rspack-test-tools/tests/hookCases/compilation#processAssets/update-asset/hooks.snap.txt index d4fbb2570ee9..0c613ef54885 100644 --- a/packages/rspack-test-tools/tests/hookCases/compilation#processAssets/update-asset/hooks.snap.txt +++ b/packages/rspack-test-tools/tests/hookCases/compilation#processAssets/update-asset/hooks.snap.txt @@ -5,7 +5,7 @@ ```javascript Array [ Object { - "main.1c39818caeb88ee0.js": (() => { // webpackBootstrap + "main.381903af5a0c33ed.js": (() => { // webpackBootstrap var __webpack_modules__ = ({ "600": (function (module) { module.exports = "This is hook" diff --git a/packages/rspack-test-tools/tests/statsAPICases/basic.js b/packages/rspack-test-tools/tests/statsAPICases/basic.js index eab2cdf22675..8afe0234f4e9 100644 --- a/packages/rspack-test-tools/tests/statsAPICases/basic.js +++ b/packages/rspack-test-tools/tests/statsAPICases/basic.js @@ -39,7 +39,7 @@ module.exports = { entry ./fixtures/a cjs self exports reference self [585] ./fixtures/a.js - Rspack compiled successfully (41ef1cd36ef4fa77) + Rspack compiled successfully (25fb71d3c0e584fa) `); } }; diff --git a/packages/rspack-test-tools/tests/statsAPICases/chunks.js b/packages/rspack-test-tools/tests/statsAPICases/chunks.js index 550eae2e7cfc..0db89ce5140e 100644 --- a/packages/rspack-test-tools/tests/statsAPICases/chunks.js +++ b/packages/rspack-test-tools/tests/statsAPICases/chunks.js @@ -27,7 +27,7 @@ module.exports = { chunkB.js, ], filteredModules: undefined, - hash: 500806fc9348e0fd, + hash: 11045cb6792bbfb1, id: 250, idHints: Array [], initial: false, @@ -144,7 +144,7 @@ module.exports = { main.js, ], filteredModules: undefined, - hash: f49ea6f9dd1c72e3, + hash: 294dacc6fb1d2652, id: 909, idHints: Array [], initial: true, diff --git a/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/async.$8354dce72f13f87a3b3f$.css b/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/async.$ae884e9ae01bc3c32ef3$.css similarity index 100% rename from tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/async.$8354dce72f13f87a3b3f$.css rename to tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/async.$ae884e9ae01bc3c32ef3$.css diff --git a/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.$8354dce72f13f87a3b3f$.css b/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.$ae884e9ae01bc3c32ef3$.css similarity index 100% rename from tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.$8354dce72f13f87a3b3f$.css rename to tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.$ae884e9ae01bc3c32ef3$.css diff --git a/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.js b/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.js index 3bb8cc8fb151..796e0ba08beb 100644 --- a/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.js +++ b/tests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.js @@ -77,7 +77,7 @@ __webpack_require__.e = function (chunkId) { // webpack/runtime/get_full_hash (() => { __webpack_require__.h = function () { - return "8354dce72f13f87a3b3f"; + return "ae884e9ae01bc3c32ef3"; }; })(); diff --git a/tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryA.$b3f8b9e790792482d093$.css b/tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryA.$bd5939485d4f3ec74c0d$.css similarity index 100% rename from tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryA.$b3f8b9e790792482d093$.css rename to tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryA.$bd5939485d4f3ec74c0d$.css diff --git a/tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryB.$8aa8deac17a40f6d67d3$.css b/tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryB.$f4d423c146f6456d2f68$.css similarity index 100% rename from tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryB.$8aa8deac17a40f6d67d3$.css rename to tests/plugin-test/css-extract/cases/contenthash-multiple-entries/expected/entryB.$f4d423c146f6456d2f68$.css diff --git a/tests/plugin-test/css-extract/cases/contenthash/expected/1.main.$07dbcc4134dc4aeaed55$.css b/tests/plugin-test/css-extract/cases/contenthash/expected/1.main.$e35ecf2d8d9936705256$.css similarity index 100% rename from tests/plugin-test/css-extract/cases/contenthash/expected/1.main.$07dbcc4134dc4aeaed55$.css rename to tests/plugin-test/css-extract/cases/contenthash/expected/1.main.$e35ecf2d8d9936705256$.css diff --git a/tests/plugin-test/css-extract/cases/contenthash/expected/2.main.$915651afb7b484c9d0ad$.css b/tests/plugin-test/css-extract/cases/contenthash/expected/2.main.$e0e9bed01c7ef0b55991$.css similarity index 100% rename from tests/plugin-test/css-extract/cases/contenthash/expected/2.main.$915651afb7b484c9d0ad$.css rename to tests/plugin-test/css-extract/cases/contenthash/expected/2.main.$e0e9bed01c7ef0b55991$.css diff --git a/tests/plugin-test/css-extract/cases/issue-6649/expected/main.js b/tests/plugin-test/css-extract/cases/issue-6649/expected/main.js index c1a54d3236ba..30fef9035a28 100644 --- a/tests/plugin-test/css-extract/cases/issue-6649/expected/main.js +++ b/tests/plugin-test/css-extract/cases/issue-6649/expected/main.js @@ -89,7 +89,7 @@ __webpack_require__.e = function (chunkId) { // return url for filenames not based on template // return url for filenames based on template - return "" + chunkId + ".$" + {"\\css\\chunk": "7581dee2a69443af41de","\\js\\chunk": "fc8054f62065d9d47766",}[chunkId] + "$.js"; + return "" + chunkId + ".$" + {"\\css\\chunk": "d0e08c0a6c7f57622c03","\\js\\chunk": "4417803b080d011de306",}[chunkId] + "$.js"; }; })(); @@ -107,7 +107,7 @@ __webpack_require__.e = function (chunkId) { // webpack/runtime/get_full_hash (() => { __webpack_require__.h = function () { - return "fe52747742d68f0a0ffb"; + return "b509c1f0031feb6a88cc"; }; })(); From 05a1908c61832a755ec9df9de387f5232637eaa8 Mon Sep 17 00:00:00 2001 From: Hana Date: Wed, 11 Dec 2024 16:25:22 +0800 Subject: [PATCH 3/6] test: snapshot --- .../StatsTestCases.basictest.js.snap | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap index 6e7899bae566..593e572311e1 100644 --- a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap +++ b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap @@ -293,12 +293,12 @@ Rspack x.x.x compiled successfully in X.23" `; exports[`StatsTestCases should print correct stats for commons-plugin-issue-4980 1`] = ` -"asset app.3518bd440aeb4968-1.js 52 bytes [emitted] [immutable] (name: app) +"asset app.5501e020a5583695-1.js 52 bytes [emitted] [immutable] (name: app) orphan modules 205 bytes [orphan] 3 modules ./entry-1.js 67 bytes [built] [code generated] Rspack x.x.x compiled successfully in X.23 -asset app.ea5b13fce9af654d-2.js 52 bytes [emitted] [immutable] (name: app) +asset app.f6d28aa27785dd40-2.js 52 bytes [emitted] [immutable] (name: app) orphan modules 212 bytes [orphan] 3 modules ./entry-2.js 67 bytes [built] [code generated] Rspack x.x.x compiled successfully in X.23" @@ -456,8 +456,8 @@ Rspack x.x.x compiled successfully in X.23" `; exports[`StatsTestCases should print correct stats for immutable 1`] = ` -"asset 47e3b6ce5f97aa39.js 10.4 KiB [emitted] [immutable] (name: main) -asset 0eabef8a2caed302.js 167 bytes [emitted] [immutable]" +"asset 32f0040e97401a22.js 10.4 KiB [emitted] [immutable] (name: main) +asset fa63d87b0520feaf.js 167 bytes [emitted] [immutable]" `; exports[`StatsTestCases should print correct stats for import-context-filter 1`] = ` @@ -540,19 +540,19 @@ Rspack x.x.x compiled with 2 warnings" `; exports[`StatsTestCases should print correct stats for issue-7577 1`] = ` -"asset a-runtime~main-5175c0b04f45ecd3.js 3.69 KiB [emitted] [immutable] (name: runtime~main) +"asset a-runtime~main-afa3b3ca9d13c976.js 3.69 KiB [emitted] [immutable] (name: runtime~main) asset a-main-f9892dc0f961d982.js 387 bytes [emitted] [immutable] (name: main) -asset a-all-a_js-2907035577382be1.js 128 bytes [emitted] [immutable] (id hint: all) -Entrypoint main 4.19 KiB = a-runtime~main-5175c0b04f45ecd3.js 3.69 KiB a-all-a_js-2907035577382be1.js 128 bytes a-main-f9892dc0f961d982.js 387 bytes +asset a-all-a_js-c5e9a60a93fca8e7.js 128 bytes [emitted] [immutable] (id hint: all) +Entrypoint main 4.19 KiB = a-runtime~main-afa3b3ca9d13c976.js 3.69 KiB a-all-a_js-c5e9a60a93fca8e7.js 128 bytes a-main-f9892dc0f961d982.js 387 bytes runtime modules 2.59 KiB 3 modules ./a.js 18 bytes [built] [code generated] Rspack x.x.x compiled successfully in X.23 -asset b-runtime~main-f130384ef7bd3eeb.js 4.38 KiB [emitted] [immutable] (name: runtime~main) -asset b-all-b_js-b919ab3b8ffc37f5.js 453 bytes [emitted] [immutable] (id hint: all) +asset b-runtime~main-fe8d7b2736c6ee6b.js 4.38 KiB [emitted] [immutable] (name: runtime~main) +asset b-all-b_js-21ec1ff4bd0d701e.js 453 bytes [emitted] [immutable] (id hint: all) asset b-main-a97968a81f0fafdb.js 420 bytes [emitted] [immutable] (name: main) -asset b-vendors-node_modules_vendor_js-5fbe5e4f804941dc.js 173 bytes [emitted] [immutable] (id hint: vendors) -Entrypoint main 5.41 KiB = b-runtime~main-f130384ef7bd3eeb.js 4.38 KiB b-vendors-node_modules_vendor_js-5fbe5e4f804941dc.js 173 bytes b-all-b_js-b919ab3b8ffc37f5.js 453 bytes b-main-a97968a81f0fafdb.js 420 bytes +asset b-vendors-node_modules_vendor_js-b7a19993a8749c9c.js 173 bytes [emitted] [immutable] (id hint: vendors) +Entrypoint main 5.41 KiB = b-runtime~main-fe8d7b2736c6ee6b.js 4.38 KiB b-vendors-node_modules_vendor_js-b7a19993a8749c9c.js 173 bytes b-all-b_js-21ec1ff4bd0d701e.js 453 bytes b-main-a97968a81f0fafdb.js 420 bytes runtime modules 3.17 KiB 5 modules cacheable modules 40 bytes ./b.js 17 bytes [built] [code generated] @@ -560,12 +560,12 @@ cacheable modules 40 bytes Rspack x.x.x compiled successfully in X.23 assets by chunk 862 bytes (id hint: all) - asset c-all-b_js-5b962d1a9637e7e9.js 480 bytes [emitted] [immutable] (id hint: all) - asset c-all-c_js-006eb746a1813a72.js 382 bytes [emitted] [immutable] (id hint: all) -asset c-runtime~main-a06fec7048612524.js 11.1 KiB [emitted] [immutable] (name: runtime~main) + asset c-all-b_js-ee8ed41862a518cb.js 480 bytes [emitted] [immutable] (id hint: all) + asset c-all-c_js-b149372834cd415d.js 382 bytes [emitted] [immutable] (id hint: all) +asset c-runtime~main-9d02d33ce841b9f9.js 11.1 KiB [emitted] [immutable] (name: runtime~main) asset c-main-e071146c113b212b.js 643 bytes [emitted] [immutable] (name: main) -asset c-vendors-node_modules_vendor_js-5fbe5e4f804941dc.js 173 bytes [emitted] [immutable] (id hint: vendors) -Entrypoint main 12.1 KiB = c-runtime~main-a06fec7048612524.js 11.1 KiB c-all-c_js-006eb746a1813a72.js 382 bytes c-main-e071146c113b212b.js 643 bytes +asset c-vendors-node_modules_vendor_js-b7a19993a8749c9c.js 173 bytes [emitted] [immutable] (id hint: vendors) +Entrypoint main 12.1 KiB = c-runtime~main-9d02d33ce841b9f9.js 11.1 KiB c-all-c_js-b149372834cd415d.js 382 bytes c-main-e071146c113b212b.js 643 bytes runtime modules 9.7 KiB 13 modules cacheable modules 101 bytes ./c.js 61 bytes [built] [code generated] From b67162a38f96846203ab3bd14e3f4d2cb210e1f8 Mon Sep 17 00:00:00 2001 From: Hana Date: Thu, 12 Dec 2024 18:16:50 +0800 Subject: [PATCH 4/6] perf --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 841fb3f7d7fe..07186755590b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4860,7 +4860,7 @@ dependencies = [ [[package]] name = "rspack_sources" version = "0.3.6" -source = "git+https://github.com/web-infra-dev/rspack-sources?rev=b08c1b724de7278eca7992e5053caecd2e7f559b#b08c1b724de7278eca7992e5053caecd2e7f559b" +source = "git+https://github.com/web-infra-dev/rspack-sources?rev=c773540fe76dc4b95526b3994b1999a9ded34212#c773540fe76dc4b95526b3994b1999a9ded34212" dependencies = [ "dashmap 5.5.3", "dyn-clone", diff --git a/Cargo.toml b/Cargo.toml index 81498a5cc8d6..bbb49ce2ab66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,7 @@ rayon = { version = "1.10.0" } regex = { version = "1.11.1" } ropey = "1.6.1" rspack_resolver = { version = "0.3.5", features = ["package_json_raw_json_api"] } -rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources", rev = "b08c1b724de7278eca7992e5053caecd2e7f559b" } +rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources", rev = "c773540fe76dc4b95526b3994b1999a9ded34212" } rustc-hash = { version = "2.1.0" } serde = { version = "1.0.215" } serde_json = { version = "1.0.133" } From ab18b930708b0b1669512f3e0ba5b1aef5535a02 Mon Sep 17 00:00:00 2001 From: Hana Date: Thu, 12 Dec 2024 19:55:20 +0800 Subject: [PATCH 5/6] perf --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 07186755590b..c5c293312eae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4860,7 +4860,7 @@ dependencies = [ [[package]] name = "rspack_sources" version = "0.3.6" -source = "git+https://github.com/web-infra-dev/rspack-sources?rev=c773540fe76dc4b95526b3994b1999a9ded34212#c773540fe76dc4b95526b3994b1999a9ded34212" +source = "git+https://github.com/web-infra-dev/rspack-sources?rev=8e088bd21670b417733b264ac719025f6cfdede5#8e088bd21670b417733b264ac719025f6cfdede5" dependencies = [ "dashmap 5.5.3", "dyn-clone", diff --git a/Cargo.toml b/Cargo.toml index bbb49ce2ab66..b0b416a6197e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,7 @@ rayon = { version = "1.10.0" } regex = { version = "1.11.1" } ropey = "1.6.1" rspack_resolver = { version = "0.3.5", features = ["package_json_raw_json_api"] } -rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources", rev = "c773540fe76dc4b95526b3994b1999a9ded34212" } +rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources", rev = "8e088bd21670b417733b264ac719025f6cfdede5" } rustc-hash = { version = "2.1.0" } serde = { version = "1.0.215" } serde_json = { version = "1.0.133" } From 940eedfac398819bc07bcd3689247b5149e9685a Mon Sep 17 00:00:00 2001 From: Hana Date: Fri, 13 Dec 2024 12:53:30 +0800 Subject: [PATCH 6/6] upgrade --- Cargo.lock | 5 +++-- Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c5c293312eae..187164b7fb89 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4859,8 +4859,9 @@ dependencies = [ [[package]] name = "rspack_sources" -version = "0.3.6" -source = "git+https://github.com/web-infra-dev/rspack-sources?rev=8e088bd21670b417733b264ac719025f6cfdede5#8e088bd21670b417733b264ac719025f6cfdede5" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92cf456fa25822d9cd77280f05ab0fdac5b99b090243b263d835c6c7f26d09e7" dependencies = [ "dashmap 5.5.3", "dyn-clone", diff --git a/Cargo.toml b/Cargo.toml index b0b416a6197e..b2fff2f516a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,7 @@ rayon = { version = "1.10.0" } regex = { version = "1.11.1" } ropey = "1.6.1" rspack_resolver = { version = "0.3.5", features = ["package_json_raw_json_api"] } -rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources", rev = "8e088bd21670b417733b264ac719025f6cfdede5" } +rspack_sources = { version = "0.4.0" } rustc-hash = { version = "2.1.0" } serde = { version = "1.0.215" } serde_json = { version = "1.0.133" }