diff --git a/Cargo.lock b/Cargo.lock index 916eed6544e4..8b188b385e89 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4943,9 +4943,9 @@ dependencies = [ [[package]] name = "rspack_sources" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5f8ab2ee9b7bc3eff7bd03e3845203ff06b4cf18f277740d262f022bb8e18d" +checksum = "646955b2a5abd85cd4af1f21165e6c97bd39967fe5b3a7309c655e4f545f902c" dependencies = [ "dyn-clone", "memchr", diff --git a/Cargo.toml b/Cargo.toml index e5c28c80edcc..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.14", 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 } 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 }); ```