Skip to content

Commit

Permalink
chore: use add_include
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangWeixian committed Jun 21, 2024
1 parent 21ea39b commit 91daba8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct RSCClientEntryLoader {
options: RSCClientEntryLoaderOptions,
}
#[derive(Debug, Clone, Default)]
pub struct QueryParsedRequest {
struct QueryParsedRequest {
pub is_client_entry: bool,
pub is_route_entry: bool,
pub chunk_name: String,
Expand Down Expand Up @@ -55,7 +55,7 @@ impl RSCClientEntryLoader {
Some(Path::new(&self.options.root).join(file_name))
}

pub fn parse_query(&self, query: Option<&str>) -> QueryParsedRequest {
fn parse_query(&self, query: Option<&str>) -> QueryParsedRequest {
if let Some(query) = query {
let hash_query: HashMap<_, _> =
form_urlencoded::parse(query.trim_start_matches('?').as_bytes())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl RSCClientReferenceManifestRspackPlugin {
);
let entry = Box::new(EntryDependency::new(request, context.clone(), false));
compilation
.add_entry(
.add_include(
entry,
EntryOptions {
name: Some(String::from("client-entry")),
Expand All @@ -61,7 +61,7 @@ impl RSCClientReferenceManifestRspackPlugin {
);
let entry = Box::new(EntryDependency::new(request, context.clone(), false));
compilation
.add_entry(
.add_include(
entry,
EntryOptions {
name: Some(String::from("client-entry")),
Expand Down

0 comments on commit 91daba8

Please sign in to comment.