From bfdb8071e88811a11144b45de1f7cb7b15183bc8 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Fri, 7 Nov 2025 12:13:56 +0800 Subject: [PATCH 1/5] perf: replace source to original source --- Cargo.lock | 3 +-- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cbae051b4f3a..a84a00e16da8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4955,8 +4955,7 @@ dependencies = [ [[package]] name = "rspack_sources" version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5f8ab2ee9b7bc3eff7bd03e3845203ff06b4cf18f277740d262f022bb8e18d" +source = "git+https://github.com/web-infra-dev/rspack-sources.git?rev=ffd7181a77b174475a11aaec05375bf2364837d7#ffd7181a77b174475a11aaec05375bf2364837d7" dependencies = [ "dyn-clone", "memchr", diff --git a/Cargo.toml b/Cargo.toml index 38dafbe1dec7..7b62d70f87f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ regex-syntax = { version = "0.8.5", default-features = false, features = regress = { version = "0.10.4", default-features = false, features = ["pattern"] } ropey = { version = "1.6.1", default-features = false } rspack_resolver = { features = ["package_json_raw_json_api", "yarn_pnp"], version = "0.6.4", default-features = false } -rspack_sources = { version = "0.4.14", default-features = false } +rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources.git", rev = "ffd7181a77b174475a11aaec05375bf2364837d7", default-features = false } rustc-hash = { version = "2.1.0", default-features = false } ryu-js = { version = "1.0.2", default-features = false } scopeguard = { version = "1.2.0", default-features = false } From 87c8934911ffa34e1690ec7c2951c270402a2628 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Sat, 8 Nov 2025 18:06:00 +0800 Subject: [PATCH 2/5] update 1 --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a84a00e16da8..9688634d3b40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4955,7 +4955,7 @@ dependencies = [ [[package]] name = "rspack_sources" version = "0.4.14" -source = "git+https://github.com/web-infra-dev/rspack-sources.git?rev=ffd7181a77b174475a11aaec05375bf2364837d7#ffd7181a77b174475a11aaec05375bf2364837d7" +source = "git+https://github.com/web-infra-dev/rspack-sources.git?rev=3c1808df2e2194efdc284ce9a55aa5f85cee041e#3c1808df2e2194efdc284ce9a55aa5f85cee041e" dependencies = [ "dyn-clone", "memchr", diff --git a/Cargo.toml b/Cargo.toml index 7b62d70f87f5..c3e9afc8db4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ regex-syntax = { version = "0.8.5", default-features = false, features = regress = { version = "0.10.4", default-features = false, features = ["pattern"] } ropey = { version = "1.6.1", default-features = false } rspack_resolver = { features = ["package_json_raw_json_api", "yarn_pnp"], version = "0.6.4", default-features = false } -rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources.git", rev = "ffd7181a77b174475a11aaec05375bf2364837d7", default-features = false } +rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources.git", rev = "3c1808df2e2194efdc284ce9a55aa5f85cee041e", default-features = false } rustc-hash = { version = "2.1.0", default-features = false } ryu-js = { version = "1.0.2", default-features = false } scopeguard = { version = "1.2.0", default-features = false } From 1e4e91381b12861fd582518b30adc01acf0da6b5 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Mon, 10 Nov 2025 13:22:59 +0800 Subject: [PATCH 3/5] 0.4.15 --- Cargo.lock | 5 +++-- Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9688634d3b40..2e36a1ce8a5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4954,8 +4954,9 @@ dependencies = [ [[package]] name = "rspack_sources" -version = "0.4.14" -source = "git+https://github.com/web-infra-dev/rspack-sources.git?rev=3c1808df2e2194efdc284ce9a55aa5f85cee041e#3c1808df2e2194efdc284ce9a55aa5f85cee041e" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "646955b2a5abd85cd4af1f21165e6c97bd39967fe5b3a7309c655e4f545f902c" dependencies = [ "dyn-clone", "memchr", diff --git a/Cargo.toml b/Cargo.toml index c3e9afc8db4e..5b801c8c1bb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ regex-syntax = { version = "0.8.5", default-features = false, features = regress = { version = "0.10.4", default-features = false, features = ["pattern"] } ropey = { version = "1.6.1", default-features = false } rspack_resolver = { features = ["package_json_raw_json_api", "yarn_pnp"], version = "0.6.4", default-features = false } -rspack_sources = { git = "https://github.com/web-infra-dev/rspack-sources.git", rev = "3c1808df2e2194efdc284ce9a55aa5f85cee041e", default-features = false } +rspack_sources = { version = "0.4.15", default-features = false } rustc-hash = { version = "2.1.0", default-features = false } ryu-js = { version = "1.0.2", default-features = false } scopeguard = { version = "1.2.0", default-features = false } From fc2eb39cb3cca9fdbe14b7f5de98abd74a848682 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Mon, 10 Nov 2025 13:53:16 +0800 Subject: [PATCH 4/5] fix pretter --- website/docs/en/plugins/webpack/entry-plugin.mdx | 6 +----- website/docs/zh/plugins/webpack/entry-plugin.mdx | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/website/docs/en/plugins/webpack/entry-plugin.mdx b/website/docs/en/plugins/webpack/entry-plugin.mdx index 851f60a0eca2..74263989314e 100644 --- a/website/docs/en/plugins/webpack/entry-plugin.mdx +++ b/website/docs/en/plugins/webpack/entry-plugin.mdx @@ -51,9 +51,5 @@ When the plugin's `name` option is set to `undefined`, the entry is treated as a This allows you to inject global runtime code, such as the dev server's HMR runtime or the initialization logic for module federation. ```js -new rspack.EntryPlugin( - context, - './global-runtime.js', - { name: undefined } -); +new rspack.EntryPlugin(context, './global-runtime.js', { name: undefined }); ``` diff --git a/website/docs/zh/plugins/webpack/entry-plugin.mdx b/website/docs/zh/plugins/webpack/entry-plugin.mdx index 6dbfcfc99602..265892fda272 100644 --- a/website/docs/zh/plugins/webpack/entry-plugin.mdx +++ b/website/docs/zh/plugins/webpack/entry-plugin.mdx @@ -51,9 +51,5 @@ type EntryOptions = 这可以用于注入一段全局代码,例如 dev server 的热更新运行时代码,或是模块联邦的初始化逻辑。 ```js -new rspack.EntryPlugin( - context, - './global-runtime.js', - { name: undefined } -); +new rspack.EntryPlugin(context, './global-runtime.js', { name: undefined }); ``` From b005e5f01f8f1a46bdf6a3a27ab4071f2b777b49 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Mon, 10 Nov 2025 14:12:59 +0800 Subject: [PATCH 5/5] lock rspack-sources version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d7187fe704d6..e41c29250de0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ regex-syntax = { version = "0.8.5", default-features = false, features = regress = { version = "0.10.4", default-features = false, features = ["pattern"] } ropey = { version = "1.6.1", default-features = false } rspack_resolver = { features = ["package_json_raw_json_api", "yarn_pnp"], version = "0.6.4", default-features = false } -rspack_sources = { version = "0.4.15", default-features = false } +rspack_sources = { version = "=0.4.15", default-features = false } rustc-hash = { version = "2.1.0", default-features = false } ryu-js = { version = "1.0.2", default-features = false } scopeguard = { version = "1.2.0", default-features = false }