Skip to content

Commit

Permalink
chore: use visitor from rsc plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangWeixian committed Jun 5, 2024
1 parent 2be8b0f commit 6e44e4b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 32 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/rspack_plugin_javascript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ rspack_hash = { path = "../rspack_hash" }
rspack_hook = { path = "../rspack_hook" }
rspack_identifier = { path = "../rspack_identifier" }
rspack_ids = { path = "../rspack_ids/" }
rspack_plugin_rsc = { path = "../rspack_plugin_rsc" }
rspack_regex = { path = "../rspack_regex" }
rspack_util = { path = "../rspack_util" }
rustc-hash = { workspace = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use rspack_core::{
};
use rspack_error::miette::Diagnostic;
use rspack_error::{DiagnosticExt, IntoTWithDiagnosticArray, Result, TWithDiagnosticArray};
use rspack_plugin_rsc::rsc_visitor::ReactServerComponentsVisitor;
use swc_core::common::input::SourceFileInput;
use swc_core::common::{FileName, Span, SyntaxContext};
use swc_core::ecma::ast;
Expand All @@ -23,7 +24,6 @@ use crate::dependency::HarmonyCompatibilityDependency;
use crate::inner_graph_plugin::InnerGraphPlugin;
use crate::visitors::{scan_dependencies, swc_visitor::resolver};
use crate::visitors::{semicolon, PathIgnoredSpans, ScanDependenciesResult};
use crate::ReactServerComponentsVisitor;
use crate::{SideEffectsFlagPluginVisitor, SyntaxContextInfo};

#[derive(Debug)]
Expand Down
2 changes: 0 additions & 2 deletions crates/rspack_plugin_javascript/src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ mod side_effects_flag_plugin;

use std::borrow::Cow;
use std::hash::Hash;
mod react_server_components_plugin;

pub use drive::*;
pub use flag_dependency_exports_plugin::*;
Expand All @@ -20,7 +19,6 @@ use indoc::indoc;
pub use mangle_exports_plugin::*;
pub use module_concatenation_plugin::*;
use once_cell::sync::Lazy;
pub use react_server_components_plugin::*;
use rspack_core::rspack_sources::{BoxSource, ConcatSource, RawSource, SourceExt};
use rspack_core::{
basic_function, render_init_fragments, ChunkInitFragments, ChunkRenderContext, ChunkUkey,
Expand Down

This file was deleted.

0 comments on commit 6e44e4b

Please sign in to comment.